[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: man pages: Fix compatibility-mode problems.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/01: man pages: Fix compatibility-mode problems. |
Date: |
Tue, 21 Nov 2017 00:45:46 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit db21639777ec3565a970631ee3734eecb5ec015d
Author: G. Branden Robinson <address@hidden>
Date: Tue Nov 21 00:39:41 2017 -0500
man pages: Fix compatibility-mode problems.
* contrib/gperl/gperl.1.man: Leading an input line with a font escape
does not prevent compatibility-mode groff from trying to treat it
as a control line if the first character after the escape is a ".".
Previously, this had been guarded against by prepending the line with
\&. I regressed this on 2 November:
commit acdb173b09ec687569ef99b75f2e4f6b9dcf0495
Author: G. Branden Robinson <address@hidden>
Date: Thu Nov 2 18:50:06 2017 -0400
[...]
* Eliminate useless uses of \&.
[...]
Turns out it wasn't useless in compatibility mode, which I did not
think to test. Just use .BI instead, which is consistent with the
rest of the page anyway.
* src/preproc/soelim/soelim.1.man: Make .mso request only after
compatibility mode is turned off. I didn't regress this, but the
bodies are over 2 years old so I didn't investigate deeply.
Signed-off-by: G. Branden Robinson <address@hidden>
---
ChangeLog | 12 ++++++++++++
contrib/gperl/gperl.1.man | 4 ++--
src/preproc/soelim/soelim.1.man | 2 +-
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 84fa0c0..a1589e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2017-11-21 G. Branden Robinson <address@hidden>
+
+ man pages: Fix compatibility-mode problems.
+
+ * contrib/gperl/gperl.1.man: Use idiomatic .BI macro instead of
+ leading an input line with a font escape followed by a dot,
+ the interpretation of which differs based on compatibility
+ mode.
+
+ * src/preproc/soelim/soelim.1.man: Make .mso request only after
+ compatibility mode is turned off.
+
2017-11-19 G. Branden Robinson <address@hidden>
Makefile.am: Protect arguments to "tr" from globbing.
diff --git a/contrib/gperl/gperl.1.man b/contrib/gperl/gperl.1.man
index f6f341a..818e4cd 100644
--- a/contrib/gperl/gperl.1.man
+++ b/contrib/gperl/gperl.1.man
@@ -267,7 +267,7 @@ generates a
storage line
.RS
.EX
-\fB.ds \fIvar_name content
+.BI .ds " var_name content"
.EE
.RE
.
@@ -276,7 +276,7 @@ In
the following groff command is generated
.RS
.EX
-\fB.nr \fIvar_name content
+.BI .nr " var_name content"
.EE
.RE
.
diff --git a/src/preproc/soelim/soelim.1.man b/src/preproc/soelim/soelim.1.man
index 11fd2fc..d5b64ef 100644
--- a/src/preproc/soelim/soelim.1.man
+++ b/src/preproc/soelim/soelim.1.man
@@ -1,5 +1,4 @@
'\" p
-.mso pic.tmac
.TH @address@hidden @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
.SH NAME
@address@hidden \- interpret .so requests in groff input
@@ -7,6 +6,7 @@
.
.do nr groff_C \n[.C]
.cp 0
+.mso pic.tmac
.
.
.\" license (copying)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: man pages: Fix compatibility-mode problems.,
G. Branden Robinson <=