Skip to content

Commit

Permalink
you know you're doing good stuff when a single space makes a huge dif…
Browse files Browse the repository at this point in the history
…ference...
  • Loading branch information
proteux committed Jan 13, 2025
1 parent 6cd3a3a commit 8451f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -112,7 +112,7 @@ Format.prototype.formatText = function(text, colorTable, fontTable, safeText){
if(this.makeParagraph) rtf += "\\par";

//close doc
rtf+="}";
rtf+="}\n";

return rtf;
};

0 comments on commit 8451f3c

Please sign in to comment.