[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/05: tests: Fix unescaped hyphens in man pages.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/05: tests: Fix unescaped hyphens in man pages. |
Date: |
Sat, 24 Oct 2020 23:36:10 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 562bde2fdfcf1a739168e4a53a8c7dee2e038d22
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 25 13:28:36 2020 +1100
tests: Fix unescaped hyphens in man pages.
---
src/preproc/tbl/tests/save-and-restore-tab-stops.sh | 4 ++--
tmac/tests/andoc-clear-doc-traps.sh | 4 ++--
tmac/tests/andoc-flush-between-packages.sh | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/preproc/tbl/tests/save-and-restore-tab-stops.sh
b/src/preproc/tbl/tests/save-and-restore-tab-stops.sh
index b64e3ee..b98922a 100755
--- a/src/preproc/tbl/tests/save-and-restore-tab-stops.sh
+++ b/src/preproc/tbl/tests/save-and-restore-tab-stops.sh
@@ -26,9 +26,9 @@ groff="${abs_top_builddir:-.}/test-groff"
#
# Based on an example by Bjarni Igni Gislason.
-EXAMPLE='.TH tbl-tabs-test 1 2020-10-20 "groff test suite"
+EXAMPLE='.TH tbl\-tabs\-test 1 2020-10-20 "groff test suite"
.SH Name
-tbl-tabs-test \- see if tbl messes up the tab stops
+tbl\-tabs\-test \- see if tbl messes up the tab stops
.SH Description
Do not use tabs in man pages outside of
.BR .TS / .TE
diff --git a/tmac/tests/andoc-clear-doc-traps.sh
b/tmac/tests/andoc-clear-doc-traps.sh
index 9ae1929..9a754e6 100755
--- a/tmac/tests/andoc-clear-doc-traps.sh
+++ b/tmac/tests/andoc-clear-doc-traps.sh
@@ -34,11 +34,11 @@ EXAMPLE=\
.Nd lay mine
.Sh Description
Just testing.
-.TH man-test 7 2020-10-11
+.TH man\-test 7 2020-10-11
.SH Name
man-test \- drive sheep across minefield
.SH Description
-\[lq]doc-footer\[rq] should definitely not be sprung by this document.'
+\[lq]doc\-footer\[rq] should definitely not be sprung by this document.'
! printf "%s\n" "$EXAMPLE" \
| "$groff" -Tascii -P-cbou -mandoc -rcR=0 \
diff --git a/tmac/tests/andoc-flush-between-packages.sh
b/tmac/tests/andoc-flush-between-packages.sh
index 36fb06a..9f0963b 100755
--- a/tmac/tests/andoc-flush-between-packages.sh
+++ b/tmac/tests/andoc-flush-between-packages.sh
@@ -27,7 +27,7 @@ groff="${abs_top_builddir:-.}/test-groff"
# document. Check going from man(7) to mdoc(7) documents and back.
EXAMPLE=\
-'.TH man-flush-test 7 2020-10-11 "groff test page 1"
+'.TH man\-flush\-test 7 2020-10-11 "groff test page 1"
.SH Name
man\-flush-test \- a sanity test for groff_man(7)
.SH Description
@@ -42,7 +42,7 @@ partially-collected output line.
.Sh Description
This additional gratuitously loquacious sentence should end up with a
partially-collected output line.
-.TH man-flush-test2 7 2020-10-11 "groff test page 3"
+.TH man\-flush\-test2 7 2020-10-11 "groff test page 3"
.SH Name
man\-flush-test2 \- a second sanity test for groff_man(7)
.SH Description
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/05: tests: Fix unescaped hyphens in man pages.,
G. Branden Robinson <=