From 9dd83dcb1f422f14698e0a33097f5f21a77216b8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 18 Sep 2014 23:53:57 -0700 Subject: [PATCH] fix bug in double
removal --- src/General/Build.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index d4ae3e130..f85937bf5 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -364,7 +364,7 @@ Build = $.replace quotelink, [quotelink.childNodes...] for pp in $$ '.prettyprint', root.lastElementChild $.replace pp, $.tn pp.textContent - for br in $$ 'br', root.lastElementChild when br.previousSibling.nodeName is 'BR' + for br in $$ 'br', root.lastElementChild when !br.previousSibling or br.previousSibling.nodeName is 'BR' $.rm br if thread.isSticky