diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 19:54:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 19:54:40 +0000 |
commit | dc0bdce4b544aa493fd4b6572810467a95ee79c5 (patch) | |
tree | 77aa02cf2f9996a4974aae4e64e83b6d44598598 /regress | |
parent | 9587320ce1092476d021b7802c77eae38d7b487f (diff) |
When .Sm is called without an argument, groff toggles the spacing mode,
so let us do the same for compatibility. Using this feature is of
course not recommended except in manual page obfuscation contests.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Sm/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Sm/noarg.in | 20 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Sm/noarg.out_ascii | 11 |
3 files changed, 33 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/Makefile b/regress/usr.bin/mandoc/mdoc/Sm/Makefile index 6dd7203dd68..ef3a2de066f 100644 --- a/regress/usr.bin/mandoc/mdoc/Sm/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Sm/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.4 2012/07/07 14:10:55 schwarze Exp $ +# $OpenBSD: Makefile,v 1.5 2014/07/02 19:54:39 schwarze Exp $ -REGRESS_TARGETS=scope spacing-No spacing-Op +REGRESS_TARGETS = noarg scope spacing-No spacing-Op SKIP_TMAN ?= scope diff --git a/regress/usr.bin/mandoc/mdoc/Sm/noarg.in b/regress/usr.bin/mandoc/mdoc/Sm/noarg.in new file mode 100644 index 00000000000..bb777430845 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/noarg.in @@ -0,0 +1,20 @@ +.Dd July 2, 2014 +.Dt SM-NOARG 1 +.Os OpenBSD +.Sh NAME +.Nm Sm-noarg +.Nd spacing macro without arguments +.Sh DESCRIPTION +.Fl f Ar on +.Sm off +.Fl f Ar off +.Sm +.Fl f Ar toggle Pq now on +.Sm on +.Fl f Ar on +.Sm +.Fl f Ar toggle Pq now off +.Pp +.Sm on +.Fl f Ar on +on a new line diff --git a/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_ascii new file mode 100644 index 00000000000..ad4d2c365bb --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/noarg.out_ascii @@ -0,0 +1,11 @@ +SM-NOARG(1) OpenBSD Reference Manual SM-NOARG(1) + +NNAAMMEE + SSmm--nnooaarrgg - spacing macro without arguments + +DDEESSCCRRIIPPTTIIOONN + --ff _o_n --ff_o_f_f --ff _t_o_g_g_l_e (now on) --ff _o_n --ff_t_o_g_g_l_e(nowoff) + + --ff _o_n on a new line + +OpenBSD July 2, 2014 OpenBSD |