From e2c2ba13a3325cd992ced1ada6a5bc49076ec5ac Mon Sep 17 00:00:00 2001 From: Tommy Lehmann Date: Wed, 8 Feb 2017 20:23:46 +0100 Subject: [PATCH] Fix for #7 I think it's the easiest and portable to simply add a newline to the end of the table, cause otherwise you have to change the way the table and its boundarys are read. --- lib/table-formatter.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/table-formatter.coffee b/lib/table-formatter.coffee index 537ee59..60da224 100644 --- a/lib/table-formatter.coffee +++ b/lib/table-formatter.coffee @@ -93,6 +93,9 @@ class TableFormatter if indent? @newTableText = @newTableText.replace(/(^|\n)/g, (m, nl) -> nl + indent).replace(/\s+$/, @newLine) + @newTableText = @newTableText + @newLine + + return @newTableText getNumColumns: (line) ->