diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/char/hyphen | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/char/hyphen')
-rw-r--r-- | regress/char/hyphen/Makefile | 5 | ||||
-rw-r--r-- | regress/char/hyphen/man.in | 11 | ||||
-rw-r--r-- | regress/char/hyphen/man.out_ascii | 20 | ||||
-rw-r--r-- | regress/char/hyphen/mdoc.in | 17 | ||||
-rw-r--r-- | regress/char/hyphen/mdoc.out_ascii | 19 |
5 files changed, 72 insertions, 0 deletions
diff --git a/regress/char/hyphen/Makefile b/regress/char/hyphen/Makefile new file mode 100644 index 00000000..6f9638a3 --- /dev/null +++ b/regress/char/hyphen/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.2 2011/11/17 16:28:45 schwarze Exp $ + +REGRESS_TARGETS=man mdoc + +.include <bsd.regress.mk> diff --git a/regress/char/hyphen/man.in b/regress/char/hyphen/man.in new file mode 100644 index 00000000..546c7c56 --- /dev/null +++ b/regress/char/hyphen/man.in @@ -0,0 +1,11 @@ +.TH hyphen-man 1 "September 18, 2011" OpenBSD +.SH NAME +\fBhyphen-man\fR - formatting hyphens and breaking lines +.SH DESCRIPTION +This is a long line of text, such that the last word won't fit: break-here +.PP +Try the same thing once same again, but now in italic font mode: +\fIbreak-here\fP +.PP +Finally, try it a third time, but this time in bold font mode: +\fBbreak-here\fP diff --git a/regress/char/hyphen/man.out_ascii b/regress/char/hyphen/man.out_ascii new file mode 100644 index 00000000..368edbb5 --- /dev/null +++ b/regress/char/hyphen/man.out_ascii @@ -0,0 +1,20 @@ +hyphen-man(1) General Commands Manual hyphen-man(1) + + + +NNAAMMEE + hhyypphheenn--mmaann - formatting hyphens and breaking lines + +DDEESSCCRRIIPPTTIIOONN + This is a long line of text, such that the last word won't fit: break- + here + + Try the same thing once same again, but now in italic font mode: _b_r_e_a_k_- + _h_e_r_e + + Finally, try it a third time, but this time in bold font mode: bbrreeaakk-- + hheerree + + + +OpenBSD September 18, 2011 hyphen-man(1) diff --git a/regress/char/hyphen/mdoc.in b/regress/char/hyphen/mdoc.in new file mode 100644 index 00000000..76cfd0d3 --- /dev/null +++ b/regress/char/hyphen/mdoc.in @@ -0,0 +1,17 @@ +.Dd February 22, 2014 +.Dt HYPHEN-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm hyphen-mdoc +.Nd formatting hyphens and breaking lines +.Sh DESCRIPTION +This is a long line of text, such that the last word won't fit: break-here +.Pp +But do not break the line at hyphens inside macro arguments: no +.No break-here +.Pp +Try the same thing once same again, but now in italic font mode: +\fIbreak-here\fP +.Pp +And finally, try it a third time, but this time in bold font mode: +\fBbreak-here\fP diff --git a/regress/char/hyphen/mdoc.out_ascii b/regress/char/hyphen/mdoc.out_ascii new file mode 100644 index 00000000..d1171156 --- /dev/null +++ b/regress/char/hyphen/mdoc.out_ascii @@ -0,0 +1,19 @@ +HYPHEN-MDOC(1) General Commands Manual HYPHEN-MDOC(1) + +NNAAMMEE + hhyypphheenn--mmddoocc - formatting hyphens and breaking lines + +DDEESSCCRRIIPPTTIIOONN + This is a long line of text, such that the last word won't fit: break- + here + + But do not break the line at hyphens inside macro arguments: no + break-here + + Try the same thing once same again, but now in italic font mode: _b_r_e_a_k_- + _h_e_r_e + + And finally, try it a third time, but this time in bold font mode: bbrreeaakk-- + hheerree + +OpenBSD February 22, 2014 OpenBSD |