commit 08362697139b2161f599444b4ea72ee04e36f770
parent a0619711b34e87cbadf783032718acee6691a0bf
Author: Matthew Flatt <mflatt@racket-lang.org>
Date: Thu, 29 Nov 2012 07:18:30 -0700
scribble HTML: no extra breaking at the end of an identifier
original commit: bd16f1e302ad3d3fa7a47a8739a33c1eef56969e
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/collects/scribble/html-render.rkt b/collects/scribble/html-render.rkt
@@ -1385,7 +1385,7 @@
(cond
[(string? i)
(let ([m (and (extra-breaking?)
- (regexp-match-positions #rx"[-:/+_]|[a-z](?=[A-Z])" i))])
+ (regexp-match-positions #rx"[-:/+_](?=.)|[a-z](?=[A-Z])" i))])
(if m
(list* (substring i 0 (cdar m))
;; Most browsers wrap after a hyphen. The one that