Replace <wbr> and <span class='mywbr'> </span> with zero-width-space.
The zero width space is a more robust way to add place to line-wrap, according to: http://www.quirksmode.org/oddsandends/wbr.html Closes PR 13305. original commit: 29031f0972ead0d3cd26d61f163b5e5b59e9ffce
This commit is contained in:
parent
161d49ca39
commit
f8b07bcc26
|
@ -1399,9 +1399,7 @@
|
||||||
;; doesn't, Firefox, pays attention to wbr. Some
|
;; doesn't, Firefox, pays attention to wbr. Some
|
||||||
;; browsers ignore wbr, but at least they don't do
|
;; browsers ignore wbr, but at least they don't do
|
||||||
;; strange things with it.
|
;; strange things with it.
|
||||||
(if (equal? #\- (string-ref i (caar m)))
|
#x200b
|
||||||
'(wbr)
|
|
||||||
`(span ([class "mywbr"]) " "))
|
|
||||||
(render-other (substring i (cdar m)) part ri))
|
(render-other (substring i (cdar m)) part ri))
|
||||||
(ascii-ize i)))]
|
(ascii-ize i)))]
|
||||||
[(symbol? i)
|
[(symbol? i)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user