commit 28365e807873150905b2070942288b860794e83d
parent 6dfc4f01e441c806bf85e86c470b0a3b80d6cfd7
Author: Matthew Flatt <mflatt@racket-lang.org>
Date: Tue, 10 Jul 2007 02:02:29 +0000
more scribble reader section fixes (for IE)
svn: r6877
original commit: a1b7fd3d361bb4c8b468f832f7af05add2be354c
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/collects/scribblings/scribble/reader.scrbl b/collects/scribblings/scribble/reader.scrbl
@@ -338,7 +338,7 @@ the opening marker to have the text terminated by a @litchar["}|"].
@scribble-examples|==={
@foo|{...}|
- @foo|{"}" closes, "{" opens}|
+ @foo|{"}" follows "{"}|
@foo|{Nesting |{is}| ok}|
}===|
@@ -474,7 +474,6 @@ A single newline that follows an open brace or precedes a closing
brace is discarded, unless there are only newlines in the body; other
newlines are read as a @scheme["\n"] string
-@;FIXME empty lines are ignored in generated HTML output (with IE?)
@scribble-examples|==={
@foo{bar
}
diff --git a/collects/scribblings/scribble/utils.ss b/collects/scribblings/scribble/utils.ss
@@ -15,7 +15,10 @@
(make-table
#f
(map (lambda (s)
- (list (make-flow (list (make-paragraph (list (litchar s)))))))
+ (list (make-flow (list (make-paragraph
+ (if (string=? s "")
+ '(nbsp) ; needed for IE
+ (list (litchar s))))))))
strs)))))
(define (as-flow e)