bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mm problem with heading and short first paragraph


From: Nick Stoughton
Subject: Re: mm problem with heading and short first paragraph
Date: Tue, 06 Feb 2007 11:56:36 -0800

On Tue, 2007-02-06 at 12:52 +1100, Jennifer Sayers wrote:
> Dear Werner,
> 
> I seem to have found a bug in the mm macros.  If you have a heading
> and then a paragraph which is one short line, a following paragraph
> gets run into the first one (i.e. the .P in between doesn't take effect).
> 
> I have this bug on 1.19.3 but it doesn't appear in 1.18.1 that came
> installed on my Linux system.
> 
> I have demonstrated the bug below using nroff, but I discovered it
> using troff.

This problem is caused by the check for the promise that a .P
immediately following a .H will be ignored (from groff_mm.7: "An
eventual paragraph, P, directly after H will be ignored, H is taking
care of spacing and indentation."). Since the current vertical position
on the page is the same as it was after the .H, the .P is getting
ignored. 

I had a patch that is in 1.19.3 to make the promise above work ... but
it looks like I broke this on the way!

I'll try and see if I can improve on my previous patch ... you can
almost certainly work around it by adding a ".br" after your short
paragraph.

-- 
Nick Stoughton                          Cell: 510 388 1413
USENIX Standards Liaison                Fax:  510 548 5738





reply via email to

[Prev in Thread] Current Thread [Next in Thread]