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

 
 

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

Submitter:  Dave <barx>
Submitted:  Mon 28 Apr 2014 01:50:14 AM UTC
   
 
Category:  Macro me Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  wl
Open/Closed:  Closed Planned Release:  1.22.4
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Patch applied, thanks!

Werner LEMBERG <wl>
Group administrator
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.
.)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>
Group Member

 

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

Attach Files:
   
   
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
  • -email is unavailable- added by gbranden (Updated the item)
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by georgeh (Updated the item)
  • -email is unavailable- added by barx (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-04 gbranden CategoryNone Macro me
        Item GroupNone Incorrect behaviour
    2016-11-20 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.22.4
    2016-11-20 georgeh Attached File- Added me-bug.diff, #39028

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code