bugGNU troff - Bugs: bug #42217, -me macro .(b block has incorrect...


bug #42217: -me macro .(b block has incorrect vertical spacing

Submitted by:  Dave <barx>
Submitted on:  Mon 28 Apr 2014 01:50:14 AM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Werner LEMBERG <wl>
Open/Closed: ClosedPlanned Release: 1.22.4

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 20 Nov 2016 07:19:37 AM UTC, comment #2:

Patch applied, thanks!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 20 Nov 2016 01:57:57 AM UTC, comment #1:

Indeed the bug appeared with that commit. The attached patch fixes the unwanted addition of \n(zs extra space before the block.

(file #39028)

George Helffrich <georgeh>
Mon 28 Apr 2014 01:50:14 AM UTC, original submission:

In the -me macro set, a block defined with .(b and .)b does not have the same amount of space above and below it.

meref.me documents that it should: "All displays except centered blocks and block quotes are preceded and followed by an extra \n(bs ... space." Also, this worked correctly prior to git commit b69062693d3360efce9d4d63fac337be21e07db7 to tmac/e.tmac, applied 20 Jul 2011.

The bug can be demonstrated with the following input file:

.mso me.tmac
.nr bs 2v
Above the block.
.(b L
In the block, with surrounding space = \n(bs.
Below the block.
.nr bs 0
Above the block.
.(b L
In the block, with surrounding space = \n(bs.
Below the block.

In both cases, we should expect to see the "In the block" line equidistantly spaced from the "Above" and "Below" lines. This is so when using an e.tmac from before the Jul 2011 commit; however, when using a later one, the output contains one extra line above the block in each case.

(Also posted to the groff email list:

Dave <barx>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #39028:  me-bug.diff added by georgeh (475B - application/octet-stream - patch against repository tmac/e.tmac-u)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by georgeh (Updated the item)
  • -unavailable- added by barx (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Nov 2016 07:19:37 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Planned ReleaseNone=>1.22.4
    Sun 20 Nov 2016 01:57:57 AM UTCgeorgehAttached File-=>Added me-bug.diff, #39028

    Back to the top

    Powered by Savane 3.1-cleanup1