From 4f41cc06b8151e0c4beafed7eddc49f4a514b4d8 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 19 Sep 2015 12:04:29 -0600 Subject: [PATCH] Fix alignment bug. --- rtf.js | 4 +++- samples/hyperlink.rtf | Bin 561 -> 691 bytes 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rtf.js b/rtf.js index c181f24..675b108 100644 --- a/rtf.js +++ b/rtf.js @@ -325,8 +325,10 @@ RTFJS.Renderer.prototype._appendToPar = function(el, newsubpar) { RTFJS.Renderer.prototype.startPar = function() { this._curpar = $("
"); - if (this._curRPap != null) + if (this._curRPap != null) { this._curRPap.apply(this._doc, this._curpar, this._curRChp, true); + this._curRPap.apply(this._doc, this._curpar, this._curRChp, false); + } this._cursubpar = null; this._curcont = []; this._dom.push(this._curpar); diff --git a/samples/hyperlink.rtf b/samples/hyperlink.rtf index 602d07f1ea1eb4d154353973d9a5f2e518d064d2..bf8ce85cd7dfd141ef08828eaa0ad33edf612a5f 100644 GIT binary patch delta 151 zcmdnUvYBZYD1fw=WMmdA