Skip to content

Commit 29031f0

Browse files
committed
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.
1 parent 11ca461 commit 29031f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

collects/scribble/html-render.rkt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,9 +1399,7 @@
13991399
;; doesn't, Firefox, pays attention to wbr. Some
14001400
;; browsers ignore wbr, but at least they don't do
14011401
;; strange things with it.
1402-
(if (equal? #\- (string-ref i (caar m)))
1403-
'(wbr)
1404-
`(span ([class "mywbr"]) " "))
1402+
#x200b
14051403
(render-other (substring i (cdar m)) part ri))
14061404
(ascii-ize i)))]
14071405
[(symbol? i)

0 commit comments

Comments
 (0)