From dee2dc3777960013c15d5b701b94de3b0efa421c Mon Sep 17 00:00:00 2001 From: Jatin Sanghvi <20547963+JatinSanghvi@users.noreply.github.com> Date: Fri, 17 Feb 2023 11:11:41 +0530 Subject: [PATCH] Align Markdown table column separators --- src/core/operations/ToTable.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/ToTable.mjs b/src/core/operations/ToTable.mjs index ff69023f..082c39bc 100644 --- a/src/core/operations/ToTable.mjs +++ b/src/core/operations/ToTable.mjs @@ -214,7 +214,7 @@ class ToTable extends Operation { output += outputRow(row, longestCells); let rowOutput = verticalBorder; row.forEach(function(cell, index) { - rowOutput += " " + headerDivider + " " + verticalBorder; + rowOutput += " " + headerDivider.repeat(longestCells[index]) + " " + verticalBorder; }); output += rowOutput += "\n";