From ea6dec8272b0695012e2ca9a8f8a438f2dbc7dd3 Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Thu, 22 Mar 2018 13:57:46 -0500 Subject: [PATCH] fixes #4 by triming beginnigna nd trailing whitespace in cell content --- src/tables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tables.js b/src/tables.js index 39318c3..d20b3a1 100644 --- a/src/tables.js +++ b/src/tables.js @@ -79,6 +79,7 @@ function isFirstTbody (element) { function cell (content, node) { var index = indexOf.call(node.parentNode.childNodes, node) + content = content.trim(); var prefix = ' ' if (index === 0) prefix = '| ' return prefix + content + ' |'