[Top][All Lists]

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

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

From: Ingo Schwarze
Subject: [bug #44733] [PATCH] mdoc(7) .Bl with trailing -width or -offset argument
Date: Sun, 05 Apr 2015 12:53:46 +0000
User-agent: Mozilla/5.0 (X11; OpenBSD i386; rv:36.0) Gecko/20100101 Firefox/36.0


                 Summary: [PATCH] mdoc(7) .Bl with trailing -width or -offset
                 Project: GNU troff
            Submitted by: schwarze
            Submitted on: Sun 05 Apr 2015 12:53:45 PM GMT
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None



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.


File Attachments:

Date: Sun 05 Apr 2015 12:53:45 PM GMT  Name: mdoc-Bl.patch  Size: 883B   By:

Date: Sun 05 Apr 2015 12:53:45 PM GMT  Name: test.mdoc  Size: 197B   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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