summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-01-22 20:58:36 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-01-22 20:58:36 +0000
commit3351a6d53212c73f2ac46179b1feb1a8996dce7a (patch)
treef046f5290fcf75e5007f048424e1e03ec1f646b9 /regress/usr.bin
parentc9e4c585247a34314a6295f462a612b92047bc8d (diff)
Implement the \: (optional line break) escape sequence,
documented in the Ossanna-Kernighan-Ritter troff manual and also supported by groff. Missing feature reported by Steffen Nurpmeso <sdaoden at gmail dot com>.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/char/space/Makefile5
-rw-r--r--regress/usr.bin/mandoc/char/space/break.in11
-rw-r--r--regress/usr.bin/mandoc/char/space/break.out_ascii12
3 files changed, 26 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/char/space/Makefile b/regress/usr.bin/mandoc/char/space/Makefile
index 97dfcc07cd9..a6789d97962 100644
--- a/regress/usr.bin/mandoc/char/space/Makefile
+++ b/regress/usr.bin/mandoc/char/space/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.8 2013/12/22 13:24:00 schwarze Exp $
+# $OpenBSD: Makefile,v 1.9 2014/01/22 20:58:35 schwarze Exp $
REGRESS_TARGETS = leading-mdoc leading-man multiple zerowidth
-REGRESS_TARGETS += eos eos-man nobreak tab tab-man esct-mdoc esct-man
+REGRESS_TARGETS += eos eos-man break nobreak
+REGRESS_TARGETS += tab tab-man esct-mdoc esct-man
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/char/space/break.in b/regress/usr.bin/mandoc/char/space/break.in
new file mode 100644
index 00000000000..f82fd01b094
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/break.in
@@ -0,0 +1,11 @@
+.Dd January 8, 2014
+.Dt CHAR-BREAK 1
+.Os OpenBSD
+.Sh NAME
+.Nm char-break
+.Nd optional line-break
+.Sh DESCRIPTION
+.Dl cons25,linux,rxvt,rxvt-unicode,\:sun,\:vt100,\:vt220,\:\
+wsvt25,\:xterm,\:xterm-color
+.Pp
+end of text
diff --git a/regress/usr.bin/mandoc/char/space/break.out_ascii b/regress/usr.bin/mandoc/char/space/break.out_ascii
new file mode 100644
index 00000000000..876a131e68e
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/break.out_ascii
@@ -0,0 +1,12 @@
+CHAR-BREAK(1) OpenBSD Reference Manual CHAR-BREAK(1)
+
+NNAAMMEE
+ cchhaarr--bbrreeaakk - optional line-break
+
+DDEESSCCRRIIPPTTIIOONN
+ cons25,linux,rxvt,rxvt-unicode,sun,vt100,vt220,wsvt25,xterm,
+ xterm-color
+
+ end of text
+
+OpenBSD January 8, 2014 OpenBSD