mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 20:52:27 +08:00
Fix importing tables that contain pipes
This commit is contained in:
parent
b33431774b
commit
3358d85996
2
build_for_test.sh
Normal file → Executable file
2
build_for_test.sh
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
ROOT_DIR=/mnt/d/Web/www/joplin
|
||||
ROOT_DIR=/Users/laurent/src/joplin
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
set -e
|
||||
npm run build
|
||||
|
@ -109,6 +109,7 @@ function cell (content, node = null, index = null) {
|
||||
var prefix = ' '
|
||||
if (index === 0) prefix = '| '
|
||||
let filteredContent = content.trim().replace(/\n\r/g, '<br>').replace(/\n/g, "<br>");
|
||||
filteredContent = filteredContent.replace(/\|+/g, '\\|')
|
||||
while (filteredContent.length < 3) filteredContent += ' ';
|
||||
if (node) filteredContent = handleColSpan(filteredContent, node, ' ');
|
||||
return prefix + filteredContent + ' |'
|
||||
|
Loading…
x
Reference in New Issue
Block a user