Re: Odd spacing behaviour

Morten Bo Johansen <[email protected]> Thu, 12 Mar 2026 21:42:49 +0100
Newsgroups gmane.comp.printing.groff.general
Message-ID <[email protected]>
On 2026-03-12 Dave Kemper wrote:

> On Thu, Mar 12, 2026 at 3:10 PM Morten Bo Johansen <[email protected]> wrote:
>> Is that expected behaviour?
>
> Yes, if full justification is on (adjustment mode "n" in roff
> parlance), which it is by default.  If you know you want the
> horizontal line on a separate line from the text, placing an explicit
> break between the two will stop roff from adjusting that line, as the
> text is then effectively the last line in a paragraph.
>
> $ echo -e ".pl 1\nShall I compare thee to a summer's
> day?\n.br\n\l'16.5c'" | groff -Tascii
> Shall I compare thee to a summer's day?

Okay. I have seen some minor spacing justification in some texts I have
written, but I didn't know it could get this extreme ;)

  echo ".pl 1\nShall day?\n\l'16.5c'" | groff -T ascii
  Shall                                                        day?
  _________________________________________________________________


Regards,
Morten