[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60222] [ms]: sectioning macros do not reset .IP indentation width
From: |
G. Branden Robinson |
Subject: |
[bug #60222] [ms]: sectioning macros do not reset .IP indentation width |
Date: |
Sat, 13 Mar 2021 05:22:23 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?60222>
Summary: [ms]: sectioning macros do not reset .IP indentation
width
Project: GNU troff
Submitted by: gbranden
Submitted on: Sat 13 Mar 2021 10:22:22 AM UTC
Category: Macro - ms
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Paragraphing macros reset it, but sectioning macros don't. This is a
deviation from other ms implementations (and, I presume, a mistake--my limited
imagination can't imagine a rationale for the present behavior).
Input:
$ cat IP-reset.ms
.IP \(bu 7n
foobar
.IP \(bu
bazqux
.LP
Garbage.
.IP \(bu
bazqux
.IP \(bu 7n
foobar
.SH
Section
.IP \(bu
bazqux
Heirloom Doctools ms (191015) output:
$ ./bin/nroff -ms ~/src/GIT/groff/EXPERIMENTS/IP-reset.ms | sed '/^$/d'
o foobar
o bazqux
Garbage.
o bazqux
o foobar
Section
o bazqux
March 13, 2021
V7 Unix ms (via SIMH) output:
$ nroff -ms IP-reset.ms | sed '/^$/d'
+ foobar
+ bazqux
Garbage.
+ bazqux
+ foobar
Section
+ bazqux
September 23, 1988
groff git HEAD output:
$ ./build/test-groff -Tutf8 -ms IP-reset.ms | sed '/^$/d'
• foobar
• bazqux
Garbage.
• bazqux
• foobar
Section
• bazqux
We also see bug #59826 exhibited here.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60222>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #60222] [ms]: sectioning macros do not reset .IP indentation width,
G. Branden Robinson <=