mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
Make table cells at least 3 char long
This commit is contained in:
@@ -99,7 +99,9 @@ function cell (content, node) {
|
||||
var index = indexOf.call(node.parentNode.childNodes, node)
|
||||
var prefix = ' '
|
||||
if (index === 0) prefix = '| '
|
||||
return prefix + content.trim().replace(/[\n\r]/g, "<br>") + ' |'
|
||||
let filteredContent = content.trim().replace(/[\n\r]/g, "<br>");
|
||||
while (filteredContent.length < 3) filteredContent += ' ';
|
||||
return prefix + filteredContent + ' |'
|
||||
}
|
||||
|
||||
function nodeContainsTable(node) {
|
||||
|
||||
Reference in New Issue
Block a user