From 8451f3c431bf7941fda12b0adcb6822236e1cd9b Mon Sep 17 00:00:00 2001 From: Jack Whitehouse Date: Mon, 13 Jan 2025 15:38:13 -0700 Subject: [PATCH] you know you're doing good stuff when a single space makes a huge difference... --- lib/format.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/format.js b/lib/format.js index 2d0f35c..e4ee51c 100644 --- a/lib/format.js +++ b/lib/format.js @@ -93,7 +93,7 @@ Format.prototype.formatText = function(text, colorTable, fontTable, safeText){ if(this.rightIndent>0) rtf += "\\ri" + this.rightIndent.toString(); //we don't escape text if there are other elements in it, so set a flag - var content = ""; + var content = " "; if(safeText === undefined || safeText){ content += Utils.getRTFSafeText(text); }else{ @@ -112,7 +112,7 @@ Format.prototype.formatText = function(text, colorTable, fontTable, safeText){ if(this.makeParagraph) rtf += "\\par"; //close doc - rtf+="}"; + rtf+="}\n"; return rtf; };