fix defstruct rendering (PR 9906)

svn: r12416

original commit: aca22585018efc028c65015dae113c866ef8cf68
This commit is contained in:
Matthew Flatt 2008-11-12 19:09:14 +00:00
parent 4bc0939c57
commit d975dc7f2d

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
@ -590,16 +590,19 @@
(to-flow the-name) (to-flow the-name)
(if (or (null? fields) (if (or (null? fields)
(short-width . < . max-proto-width)) (short-width . < . max-proto-width))
flow-spacer flow-spacer
(to-flow (make-element (to-flow (make-element
#f (list spacer (schemeparenfont "("))))) #f (list spacer (schemeparenfont "(")))))
(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?
(to-element (field-view (car fields))))))) (not transparent?))
(list (schemeparenfont ")"))
null)))
(to-element (field-view (car fields)))))))
(if (short-width . < . max-proto-width) (if (short-width . < . max-proto-width)
null null
(let loop ([fields (if (null? fields) (let loop ([fields (if (null? fields)