URL:
<https://savannah.gnu.org/bugs/?59384>
Summary: ms: doesn't warn about repeated .TL macros as it
should
Project: GNU troff
Submitted by: gbranden
Submitted on: Fri 30 Oct 2020 12:12:47 PM UTC
Category: Macro - ms
Severity: 2 - Minor
Item Group: Warning/Suspicious behaviour
Status: None
Privacy: Public
Assigned to: gbranden
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
The source code says this:
.de TL
.br
.als TL cov*err-not-again
.rn @AB AB
.rn @AU AU
.rn @AI AI
.di cov*tl-div
.par@reset
.ft B
.ps +2
.vs +3p
.ll (u;\\n[LL]*5/6)
.nr cov*n-au 0
.DEVTAG-TL
..
You would therefore think that a document like this would provoke the
'cov*err-not-again' macro:
.PP
First paragraph.
.TL
A Title
.PP
Next paragraph.
.TL
Another Title
.PP
Third paragraph.
.TL
Third Title
.PP
Fourth paragraph.
...but this renders without warnings. Any user stumbling across this might be
tempted to abuse .TL as a sort of sectioning macro.
AT&T ms behavior should be checked.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59384>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/