fix defstruct rendering (PR 9906)

svn: r12416
This commit is contained in:
Matthew Flatt 2008-11-12 19:09:14 +00:00
parent d0a5616cb0
commit aca2258501

View File

@ -573,7 +573,7 @@
0)) 0))
fields)))]) fields)))])
(if (and (short-width . < . max-proto-width) (if (and (short-width . < . max-proto-width)
(not immutable?) immutable?
(not transparent?)) (not transparent?))
(make-omitable-paragraph (make-omitable-paragraph
(list (list
@ -596,9 +596,12 @@
(to-flow (if (or (null? fields) (to-flow (if (or (null? fields)
(short-width . < . max-proto-width)) (short-width . < . max-proto-width))
(make-element (make-element
#f (list (to-element (map field-view #f (cons (to-element (map field-view
fields)) fields))
(schemeparenfont ")"))) (if (and immutable?
(not transparent?))
(list (schemeparenfont ")"))
null)))
(to-element (field-view (car fields))))))) (to-element (field-view (car fields)))))))
(if (short-width . < . max-proto-width) (if (short-width . < . max-proto-width)
null null