[m-dev.] Contribution: Pretty Printing Library

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Apr 12 22:40:14 AEST 2000


On 12-Apr-2000, Ralph Becket <rbeck at microsoft.com> wrote:
> Note that because labels are just like nests, the label string
> only gets printed as part of the indentation after newlines, so
> there's no guarantee that a label will be printed if its argument
> doc fits on the line.  Question: is this reasonable behaviour
> (sorry, semantics)?

Yes. 

If you want the label always printed, then you can easily do so:
instead of

	label(Label, Doc)

just use

	Label `<>` label(Label, Doc)

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list