From 08362697139b2161f599444b4ea72ee04e36f770 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 29 Nov 2012 07:18:30 -0700 Subject: [PATCH] scribble HTML: no extra breaking at the end of an identifier original commit: bd16f1e302ad3d3fa7a47a8739a33c1eef56969e --- collects/scribble/html-render.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/scribble/html-render.rkt b/collects/scribble/html-render.rkt index 0bc670f2..b1ed3e3f 100644 --- 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