[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #53052] [PATCH] manuals: Use correct macro, "BR" or "B" in a macro
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #53052] [PATCH] manuals: Use correct macro, "BR" or "B" in a macro ("esc" and "EnvVar") |
Date: |
Fri, 2 Feb 2018 17:44:30 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?53052>
Summary: [PATCH] manuals: Use correct macro, "BR" or "B" in a
macro ("esc" and "EnvVar")
Project: GNU troff
Submitted by: bjarniig
Submitted on: Fri 02 Feb 2018 10:44:29 PM UTC
Category: None
Severity: 3 - Normal
Item Group: Documentation
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
>From 8238a9202a42d8d8134552c75b1186b1228f8e9d Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Fri, 2 Feb 2018 22:34:34 +0000
Subject: [PATCH] manuals: Use correct macro, "BR" or "B" in a macro ("esc"
and
"EnvVar")
groff.1.man:
Additionally correct ".BR X" to ".B X"
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
man/groff.7.man | 7 ++++++-
src/roff/groff/groff.1.man | 9 +++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/man/groff.7.man b/man/groff.7.man
index 84a3de2d..18e1dd77 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -161,7 +161,12 @@ groff \- a short reference for the GNU roff language
.\" Result : prints \name, where 'name' is in B, 'punct' in R
.\"
.de esc
-. BR "\e\\$1" \\$2
+. ie \\n[.$]<2 \{\
+. B "\e\\$1"
+. \}
+. el \{\
+. BR "\e\\$1" \\$2
+. \}
..
.\" ====================================================================
.\" .escarg name arg [punct]
diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
index 16a2c262..6cc076c3 100644
--- a/src/roff/groff/groff.1.man
+++ b/src/roff/groff/groff.1.man
@@ -40,7 +40,12 @@ groff \- front-end for the groff document formatting
system
.\" Environment variable
.de EnvVar
. SM
-. BR \%\\$1 \\$2
+. ie \n[.$]<2 \{\
+. B \%\\$1
+. \}
+. el \{\
+. BR \%\\$1 \\$2
+. \}
..
.\" ====================================================================
.\" 'char or string'
@@ -809,7 +814,7 @@ The
.I physical
paper size, giving the actual dimensions of the paper sheets, is
controlled by output devices like
-.BR grops
+.B grops
with the command-line options
.B \-p
and
--
2.15.1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53052>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #53052] [PATCH] manuals: Use correct macro, "BR" or "B" in a macro ("esc" and "EnvVar"),
Bjarni Ingi Gislason <=