Merge pull request #1591 from mgrabovsky/br-quoting-fix

Fix handling line breaks when quoting selection in QR
This commit is contained in:
Mayhem 2014-04-26 22:24:11 +02:00
commit b8a9b4a47f

View File

@ -182,7 +182,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