summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-11-19 02:14:40 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-11-19 02:14:40 +0000
commit59910f3f0956afda1d487b464158025b51bf2102 (patch)
tree64abbf35351b78e27d9596bd753e108575b4a482 /regress
parentab967b8a4034d267332594432e09010652b4d239 (diff)
In -Tman mode, support automatic word keeps in the SYNOPSIS
just like in -Tascii mode; requested by millert@. While here, do not escape the blank characters terminating man(7) macros; this is becoming more important as we use more keeps now. Note that -Tman still does not support .nr nS.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bk/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bk/synopsis.in16
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii14
3 files changed, 32 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/Makefile b/regress/usr.bin/mandoc/mdoc/Bk/Makefile
index 9009a4f6255..5e1aad4f7b6 100644
--- a/regress/usr.bin/mandoc/mdoc/Bk/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Bk/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.3 2012/07/07 14:10:55 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2012/11/19 02:14:39 schwarze Exp $
-REGRESS_TARGETS=break badarg
+REGRESS_TARGETS = break synopsis badarg
SKIP_TMAN ?= badarg
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in
new file mode 100644
index 00000000000..047ef3a29c7
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.in
@@ -0,0 +1,16 @@
+.Dd November 18, 2012
+.Dt BK-SYNOPSIS 1
+.Os OpenBSD
+.Sh NAME
+.Nm Bk-synopsis
+.Nd automatic keeps in the synopsis
+.Sh SYNOPSIS
+.Nm ksh
+.Op Fl +abCefhiklmnpruvXx
+.Op Fl +o Ar option
+.Op Fl c Ar string \*(Ba Fl s \*(Ba Ar file Op Ar argument ...
+.Sh DESCRIPTION
+.Nm ksh
+.Op Fl +abCefhiklmnpruvXx
+.Op Fl +o Ar option
+.Op Fl c Ar string \*(Ba Fl s \*(Ba Ar file Op Ar argument ...
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii
new file mode 100644
index 00000000000..217409f4e61
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bk/synopsis.out_ascii
@@ -0,0 +1,14 @@
+BK-SYNOPSIS(1) OpenBSD Reference Manual BK-SYNOPSIS(1)
+
+NNAAMMEE
+ BBkk--ssyynnooppssiiss - automatic keeps in the synopsis
+
+SSYYNNOOPPSSIISS
+ 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 _._._.]]
+
+DDEESSCCRRIIPPTTIIOONN
+ 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
+ _._._.]]
+
+OpenBSD November 18, 2012 OpenBSD