diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-01-02 02:35:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-01-02 02:35:54 +0000 |
commit | 1eb9eaeb5cceedbe9d97dec2b66ec67cc4a92cf5 (patch) | |
tree | 4e586fe0aa132e15bc794a88233a3dbae506f5f1 /regress/usr.bin/mandoc | |
parent | 232e2e223435861451bea695b19439c2006b14d3 (diff) |
Check that end of .It does not restore .Sm state
to the value it had before entering .It;
fixed by kristaps@ in release 1.9.15.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Sm/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Sm/scope.in | 30 |
3 files changed, 38 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Makefile b/regress/usr.bin/mandoc/mdoc/Makefile index d6c730491b1..774c9dd6414 100644 --- a/regress/usr.bin/mandoc/mdoc/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.3 2009/12/25 02:00:46 schwarze Exp $ +# $OpenBSD: Makefile,v 1.4 2010/01/02 02:35:53 schwarze Exp $ -SUBDIR+= Bl Fl In Pa Rs +SUBDIR+= Bl Fl In Pa Rs Sm groff groff-clean: _SUBDIRUSE diff --git a/regress/usr.bin/mandoc/mdoc/Sm/Makefile b/regress/usr.bin/mandoc/mdoc/Sm/Makefile new file mode 100644 index 00000000000..b90637afe45 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2010/01/02 02:35:53 schwarze Exp $ + +REGRESS_TARGETS=scope +GROFF_TARGETS=scope + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/mdoc/Sm/scope.in b/regress/usr.bin/mandoc/mdoc/Sm/scope.in new file mode 100644 index 00000000000..04da8dee76f --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Sm/scope.in @@ -0,0 +1,30 @@ +.Dd $Mdocdate: January 2 2010 $ +.Dt SM-SCOPE 1 +.Os +.Sh NAME +.Nm Sm-scope +.Nd scope of the spacing macro +.Sh DESCRIPTION +Using an abbreviated example from the +.Xr ksh 1 +manual. +.Pp +Modifiers can be applied to the +.Pf ${ Ns Ar name Ns } +form of parameter substitution: +.Bl -tag -width Ds +.Sm off +.It ${ Ar name No :- Ar word No } +.Sm on +If +.Ar name +is set and not +.Dv NULL , +it is substituted; otherwise, +.Ar word +is substituted. +.El +.Pp +In the above modifiers, the +.Ql \&: +can be omitted, ... |