adjust the way 'new' is laid out in the documentation to be more DrRacket-like
original commit: 0b71ebecafca03470c2e26783e5afbf05df30dce
This commit is contained in:
parent
da393a6b19
commit
9a97f6693f
|
@ -363,7 +363,7 @@
|
|||
(list flow-spacer)
|
||||
(list flow-spacer flow-spacer
|
||||
flow-spacer flow-spacer))]
|
||||
[one-ok? (tagged+arg-width . < . 60)])
|
||||
[one-ok? (and (not (eq? mode 'new)) (tagged+arg-width . < . 60))])
|
||||
(list
|
||||
(make-table
|
||||
"prototype"
|
||||
|
@ -393,7 +393,9 @@
|
|||
(arg-id (cadr args))))))])
|
||||
(cons
|
||||
(list*
|
||||
flow-spacer
|
||||
(if (eq? mode 'new)
|
||||
(flow-spacer/n 3)
|
||||
flow-spacer)
|
||||
(if (arg-starts-optional? (car args))
|
||||
(to-flow (make-element #f (list spacer "[")))
|
||||
flow-spacer)
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
[spacer element?]
|
||||
[to-flow (content? . -> . flow?)]
|
||||
[flow-spacer flow?]
|
||||
[flow-spacer/n (-> exact-nonnegative-integer? flow?)]
|
||||
[flow-empty-line flow?]
|
||||
[make-table-if-necessary (content? list? . -> . (list/c (or/c omitable-paragraph? table?)))]
|
||||
[current-display-width (parameter/c exact-nonnegative-integer?)])
|
||||
|
@ -20,6 +21,7 @@
|
|||
(define (to-flow e)
|
||||
(make-flow (list (make-omitable-paragraph (list e)))))
|
||||
(define flow-spacer (to-flow spacer))
|
||||
(define (flow-spacer/n n) (to-flow (hspace n)))
|
||||
(define flow-empty-line (to-flow (tt 'nbsp)))
|
||||
|
||||
(define (make-table-if-necessary style content)
|
||||
|
|
Loading…
Reference in New Issue
Block a user