Guide corrections

original commit: bedd7b16713bcea67f44e8bc7e30a5782b8a1f66
This commit is contained in:
Matthew Flatt 2011-08-26 10:01:28 -06:00
parent fa41cf795e
commit d1d35d28bf

View File

@ -41,7 +41,7 @@
(namespace-require '(for-syntax racket/base))
(define (literal-string style s)
(let ([m (regexp-match #rx"^(.*)( +)(.*)$" s)])
(let ([m (regexp-match #rx"^(.*)( +|^ )(.*)$" s)])
(if m
(make-element #f (list (literal-string style (cadr m))
(hspace (string-length (caddr m)))