From f8b07bcc268467d0280fa5a0ed695c7a6c3fb19e Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Tue, 12 Feb 2013 17:58:08 -0700 Subject: [PATCH] Replace and 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 --- collects/scribble/html-render.rkt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/collects/scribble/html-render.rkt b/collects/scribble/html-render.rkt index de97f54d..1f25ea9c 100644 --- 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)