[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 05/38: [man]: (EX, EE): Break line, even if call invalid.
From: |
G. Branden Robinson |
Subject: |
[groff] 05/38: [man]: (EX, EE): Break line, even if call invalid. |
Date: |
Fri, 2 Sep 2022 19:56:29 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 8b63b08edd2cfbe95b1971f458c808331395eaca
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Aug 27 13:19:25 2022 -0500
[man]: (EX, EE): Break line, even if call invalid.
* tmac/an.tmac (EX, EE):
* tmac/an-ext.tmac (EX, EE): Do it. Ingo Schwarze pointed out that page
authors will expect breaking semantics from these macros even if using
them in an ill-formed way. In a well-formed document, the breaks are
redundant but harmless (the later `nf` and `fi` requests,
respectively, also cause breaks).
---
ChangeLog | 11 +++++++++++
tmac/an-ext.tmac | 2 ++
tmac/an.tmac | 2 ++
3 files changed, 15 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index eaae74736..145f977e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2022-08-27 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [man]: (EX, EE): Always break line, even if call invalid.
+
+ * tmac/an.tmac (EX, EE):
+ * tmac/an-ext.tmac (EX, EE): Do it. Ingo Schwarze pointed out
+ that page authors will expect breaking semantics from these
+ macros even if using them in an ill-formed way. In a
+ well-formed document, the breaks are redundant but harmless (the
+ later `nf` and `fi` requests, respectively, also cause breaks).
+
2022-08-27 G. Branden Robinson <g.branden.robinson@gmail.com>
[mdoc]: Trivially refactor.
diff --git a/tmac/an-ext.tmac b/tmac/an-ext.tmac
index 8f949e387..e74bad8b5 100644
--- a/tmac/an-ext.tmac
+++ b/tmac/an-ext.tmac
@@ -247,6 +247,7 @@
.\" Start example.
.if \n(.g .ig
.de EX
+. br
. if !\\n(mX \{\
. nr mF \\n(.f
. nr mP \\n(PD
@@ -261,6 +262,7 @@
.\" End example.
.if \n(.g .ig
.de EE
+. br
. if \\n(mX \{\
. ft \\n(mF
. nr PD \\n(mP
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 88b25163f..5e45a1a84 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -987,6 +987,7 @@ contains unsupported escape sequence
.
.\" Begin an example (typically of source code or shell input).
.de1 EX
+. br
. if \\n[an*is-in-example] \{\
. an-style-warn ignoring .\\$0 while already in example
. return
@@ -1012,6 +1013,7 @@ contains unsupported escape sequence
.
.\" End example.
.de EE
+. br
. if !\\n[an*is-in-example] \{\
. an-style-warn ignoring .\\$0 while not in example
. return
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 05/38: [man]: (EX, EE): Break line, even if call invalid.,
G. Branden Robinson <=