Revert most of the change to word break, but introduce a nbsp for browser metrics.
Related to PR 13305: I tried to use zero-width-space to force appropriate line breaks, but unfortunately under Opera on Linux, this shows as unsupported character glyphs. Since I can't reliably use zero-width-space, I'm backtracking to the prior solution on introducing spans with the mywbr class. However, I've added in a   element to the content of the span, as suggested elsewhere on the web. This appears to fix the _gcpointer issue that Eric sees. original commit: 7323dde0eabf54dafb85d0e882ccefbf33e5535f
This commit is contained in:
parent
34f12bcd59
commit
a84adaeddb
|
@ -1410,10 +1410,12 @@
|
||||||
(if m
|
(if m
|
||||||
(list* (substring i 0 (cdar m))
|
(list* (substring i 0 (cdar m))
|
||||||
;; Most browsers wrap after a hyphen. The one that
|
;; Most browsers wrap after a hyphen. The one that
|
||||||
;; doesn't, Firefox, pays attention to wbr. But
|
;; doesn't, Firefox, pays attention to wbr. Some
|
||||||
;; almost all browsers pay attention to zero width
|
;; browsers ignore wbr, but at least they don't do
|
||||||
;; space, so we'll insert one here.
|
;; strange things with it.
|
||||||
#x200b
|
(if (equal? #\- (string-ref i (caar m)))
|
||||||
|
'(wbr)
|
||||||
|
'(span ([class "mywbr"]) " " nbsp))
|
||||||
(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