On Tue, May 1, 2012 at 13:17, Neil Van Dyke <[email protected]> wrote:

> I might be mistaken, but it looks like Scribble depends very much on
> source location info for formatting this -- it looks like even a form read
> as "(a b)" will format as "(ab)" in some cases if the source location info
> is stripped.
>
> If this is true, is my best bet to feed the generated syntax through the
> pretty-printer (with a sensible max. width), and read the output of that so
> that the location info is Scribble-friendly?
>

FWIW, the docs for defform say:
"The typesetting of form-datum, subform-datum, and
contract-expr-datumpreserves the source layout, like
racketblock<http://docs.racket-lang.org/scribble/scribble_manual_code.html?q=defthing#%28form._%28%28lib._scribble/manual..rkt%29._racketblock%29%29>
."
That could mean indeed that source location is used, though I'm note 100%
positive.

My ±0.02€,
Laurent
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to