[racket] scribble defproc formatting question

From: Laurent (laurent.orseau at gmail.com)
Date: Tue May 1 07:30:50 EDT 2012

On Tue, May 1, 2012 at 13:17, Neil Van Dyke <neil at neilvandyke.org> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120501/19004e4b/attachment.html>

Posted on the users mailing list.