diff --git a/src/line-by-line-printer.js b/src/line-by-line-printer.js index 33722b6..49f183f 100644 --- a/src/line-by-line-printer.js +++ b/src/line-by-line-printer.js @@ -211,6 +211,10 @@ lineWithoutPrefix = lineWithPrefix.line; } + if (prefix === ' ') { + prefix = ' '; + } + return hoganUtils.render(genericTemplatesPath, 'line', { type: type, diff --git a/src/side-by-side-printer.js b/src/side-by-side-printer.js index 6a739e5..f11572c 100644 --- a/src/side-by-side-printer.js +++ b/src/side-by-side-printer.js @@ -244,6 +244,10 @@ lineWithoutPrefix = lineWithPrefix.line; } + if (prefix === ' ') { + prefix = ' '; + } + return hoganUtils.render(genericTemplatesPath, 'line', { type: type,