summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-12-24 20:45:22 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-12-24 20:45:22 +0000
commiteff850f6b01948292cc1c95477e6d38e8ea1f7d8 (patch)
tree22df2f9a87c813a96e1a2f50c63de56848ae2eb8 /regress
parent3043e4d18d3f19a38b74cbce28987b0e5218d43a (diff)
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks. Simplify the code accordingly. This reduces groff-mandoc differences in base by about 2%. Triggered by research done by Franco Fichtner.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bk/synopsis.in4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii2
2 files changed, 5 insertions, 1 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in
index 7dccddb388a..37832bbd9d9 100644
--- a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in
+++ b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in
@@ -1,10 +1,12 @@
-.Dd $Mdocdate: May 29 2013 $
+.Dd $Mdocdate: December 24 2013 $
.Dt BK-SYNOPSIS 1
.Os OpenBSD
.Sh NAME
.Nm Bk-synopsis
.Nd automatic keeps in the synopsis
.Sh SYNOPSIS
+In the synopsis, almost all macros do not show
+.No the word keep effect they would get in a \&Bk block.
.Nm ksh
.Op Fl +abCefhiklmnpruvXx
.Op Fl +o Ar option
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii
index 05710039eef..082defe66d9 100644
--- a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii
@@ -4,6 +4,8 @@ NNAAMMEE
BBkk--ssyynnooppssiiss - automatic keeps in the synopsis
SSYYNNOOPPSSIISS
+ In the synopsis, almost all macros do not show the word keep effect they
+ would get in a Bk block.
kksshh [--++aabbCCeeffhhiikkllmmnnpprruuvvXXxx] [--++oo _o_p_t_i_o_n]
[--cc _s_t_r_i_n_g | --ss | _f_i_l_e [_a_r_g_u_m_e_n_t _._._.]]
kksshh [--++aabbCCeeffhhiikkllmmnnpprruuvvXXxx] [--++oo _o_p_t_i_o_n]