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 Apr 28 01:50:14 2014  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 1.22.4

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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

Patch applied, thanks!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun Nov 20 01:57:57 2016, 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 Apr 28 01:50:14 2014, 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.
.)b
Below the block.
.br
.
.nr bs 0
Above the block.
.(b L
In the block, with surrounding space = \n(bs.
.)b
Below the block.
.br

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:
http://lists.gnu.org/archive/html/groff/2013-12/msg00063.html
http://lists.gnu.org/archive/html/groff/2014-04/msg00043.html
)

Dave <barx>

 

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

Attach File(s):
   
   
Comment:
   

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 Nov 20 07:19:37 2016wlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>1.22.4
    Sun Nov 20 01:57:57 2016georgehAttached File-=>Added me-bug.diff, #39028

    Back to the top


    Powered by Savane 3.1-cleanup