Skip to content

Commit

Permalink
'splain yoruself boy
Browse files Browse the repository at this point in the history
  • Loading branch information
proteux committed Jan 13, 2025
1 parent 8451f3c commit 0c6d0b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ 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
//ensure that there is a space between the control character and the text
//otherwise things won't render properly
var content = " ";
if(safeText === undefined || safeText){
content += Utils.getRTFSafeText(text);
Expand Down

0 comments on commit 0c6d0b8

Please sign in to comment.