bugGNU troff - Bugs: bug #44733, [PATCH] mdoc(7) .Bl with trailing...

 
 

bug #44733: [PATCH] mdoc(7) .Bl with trailing -width or -offset argument

Submitted by:  Ingo Schwarze <schwarze>
Submitted on:  Sun 05 Apr 2015 12:53:45 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Incorrect behaviourStatus: 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.

 

Sat 11 Apr 2015 06:56:06 AM UTC, comment #1:

Applied, thanks!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 05 Apr 2015 12:53:45 PM UTC, original submission:

Prevent mdoc(7) Bl with trailing -width or -offset from picking up old args.

When checking whether there is another argument to a Bl macro,
do not inspect the argument list because it is never cleaned
and may contain arguments from previous macro invocations.
Instead, inspect the argument count which is always up to date.

The second attachment is a sample file exhibiting the problem.

The patch in the first attachment was verified by rebuilding
the whole set of OpenBSD manuals and by running the whole mandoc
test suite. No regressions were found.

Ingo Schwarze <schwarze>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #33544:  mdoc-Bl.patch added by schwarze (883B - text/x-patch)
file #33545:  test.mdoc added by schwarze (197B - application/octet-stream)

 

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 schwarze (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 Apr 2015 06:56:06 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>1.22.4
    Sun 05 Apr 2015 12:53:45 PM UTCschwarzeAttached File-=>Added mdoc-Bl.patch, #33544
      Attached File-=>Added test.mdoc, #33545

    Back to the top


    Powered by Savane 3.1-cleanup1