From 556135bddacba98a4dcb15cdcecf156d5856cde6 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 10 Dec 2024 17:48:49 +0100 Subject: [PATCH] Add missing pipes in pad tables markdown export --- www/pad/export.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/pad/export.js b/www/pad/export.js index a4bda9599..5e5a23689 100644 --- a/www/pad/export.js +++ b/www/pad/export.js @@ -118,7 +118,7 @@ define([ var rowContent = Array.from(childNode.childNodes); var indexOf = Array.prototype.indexOf; var index = childNodeArr.length > 1 ? indexOf.call(node.childNodes, rowNode) : indexOf.call(rowNode.childNodes, childNode); - var row = ''; + var row = '|'; var rowLength = rowContent.filter(Boolean).length; for (var i =0; i < rowLength; i++) { var cell = rowContent[i]; @@ -137,7 +137,7 @@ define([ var newRow = row.concat('\n'); if (index === 0) { var separator = '|-'; - newRow += `${separator.repeat(rowLength)}\n`; + newRow += `${separator.repeat(rowLength)}|\n`; } table += newRow; return newRow;