commit f8b07bcc268467d0280fa5a0ed695c7a6c3fb19e
parent 161d49ca394f9be8dbd95495b8dbd615a62924ca
Author: Danny Yoo <dyoo@hashcollision.org>
Date: Tue, 12 Feb 2013 17:58:08 -0700
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
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/collects/scribble/html-render.rkt b/collects/scribble/html-render.rkt
@@ -1399,9 +1399,7 @@
;; doesn't, Firefox, pays attention to wbr. Some
;; browsers ignore wbr, but at least they don't do
;; strange things with it.
- (if (equal? #\- (string-ref i (caar m)))
- '(wbr)
- `(span ([class "mywbr"]) " "))
+ #x200b
(render-other (substring i (cdar m)) part ri))
(ascii-ize i)))]
[(symbol? i)