[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 |
URL:
<http://savannah.gnu.org/bugs/?44733>
Summary: [PATCH] mdoc(7) .Bl with trailing -width or -offset
argument
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
_______________________________________________________
Details:
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:
schwarze
<http://savannah.gnu.org/bugs/download.php?file_id=33544>
-------------------------------------------------------
Date: Sun 05 Apr 2015 12:53:45 PM GMT Name: test.mdoc Size: 197B By:
schwarze
<http://savannah.gnu.org/bugs/download.php?file_id=33545>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44733>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #44733] [PATCH] mdoc(7) .Bl with trailing -width or -offset argument,
Ingo Schwarze <=