Fix handling <br>s when quoting selection in QR
The previous code caused, among others, merging of two-line selections into one line.
This commit is contained in:
parent
f337dcb0ca
commit
bb1fcadfa2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user