diff options
author | 2017-02-08 03:02:13 +0000 | |
---|---|---|
committer | 2017-02-08 03:02:13 +0000 | |
commit | d9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch) | |
tree | c07efd74ac58650949dc67576001a720e688319f /regress/char/hyphen | |
parent | cdbb1fca07752eb230e5219c22e9e65075c85b82 (diff) | |
download | mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip |
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 |