From d9f0f81c846a8405c29870e4a8379e5e79d1cad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Feb 2017 03:02:13 +0000 Subject: Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years. --- regress/char/hyphen/Makefile | 5 +++++ regress/char/hyphen/man.in | 11 +++++++++++ regress/char/hyphen/man.out_ascii | 20 ++++++++++++++++++++ regress/char/hyphen/mdoc.in | 17 +++++++++++++++++ regress/char/hyphen/mdoc.out_ascii | 19 +++++++++++++++++++ 5 files changed, 72 insertions(+) create mode 100644 regress/char/hyphen/Makefile create mode 100644 regress/char/hyphen/man.in create mode 100644 regress/char/hyphen/man.out_ascii create mode 100644 regress/char/hyphen/mdoc.in create mode 100644 regress/char/hyphen/mdoc.out_ascii (limited to 'regress/char/hyphen') 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 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 -- cgit v1.2.3-56-ge451