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; };