From c53a7c0a82b780e74926a9b9f3e425b1fa81239d Mon Sep 17 00:00:00 2001 From: Jack Whitehouse Date: Fri, 13 Dec 2024 15:11:26 -0700 Subject: [PATCH] fixed the missing reference --- lib/format.js | 2 +- node-rtf.code-workspace | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 node-rtf.code-workspace diff --git a/lib/format.js b/lib/format.js index e5965d3..2d0f35c 100644 --- a/lib/format.js +++ b/lib/format.js @@ -88,7 +88,7 @@ Format.prototype.formatText = function(text, colorTable, fontTable, safeText){ //Add one because color 0 is null if(this.colorPos !== undefined && this.colorPos>=0) rtf+="\\cf" + (this.colorPos).toString(); if(this.fontSize >0) rtf += "\\fs" + (this.fontSize*2).toString(); - if(this.align.length > 0) rtf += align; + if(this.align.length > 0) rtf += this.align; if(this.leftIndent>0) rtf += "\\li" + (this.leftIndent*20).toString(); if(this.rightIndent>0) rtf += "\\ri" + this.rightIndent.toString(); diff --git a/node-rtf.code-workspace b/node-rtf.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/node-rtf.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file