From bb1fcadfa2beebc4bf65d49d2d8c4db3d26cb1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= Date: Sat, 26 Apr 2014 21:01:13 +0200 Subject: [PATCH] Fix handling
s when quoting selection in QR The previous code caused, among others, merging of two-line selections into one line. --- src/Posting/QR.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 3df257a76..b1885a186 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -229,7 +229,7 @@ QR = $.prepend frag, $.tn '[code]' $.add frag, $.tn '[/code]' for node in $$ 'br', frag - $.replace node, $.tn '\n>' unless node is frag.lastElementChild + $.replace node, $.tn '\n>' unless node is frag.lastChild for node in $$ 's', frag $.replace node, [$.tn('[spoiler]'), node.childNodes..., $.tn '[/spoiler]'] for node in $$ '.prettyprint', frag