Fix trailing space issue

This commit is contained in:
Laurent Cozic 2018-05-17 01:29:33 +01:00
parent e77328fb23
commit 813b9a61b0

View File

@ -46,7 +46,7 @@ rules.table = {
if (columnCount && !isHeadingRow(firstRow)) {
emptyHeader = '|' + ' |'.repeat(columnCount) + '\n' + '|' + ' --- |'.repeat(columnCount)
}
// Ensure there are no blank lines
content = content.replace('\n\n', '\n')
return '\n\n' + emptyHeader + content + '\n\n'