summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/usr.bin/mandoc/roff/esc/Makefile4
-rw-r--r--regress/usr.bin/mandoc/roff/esc/e.in19
-rw-r--r--regress/usr.bin/mandoc/roff/esc/e.out_ascii13
3 files changed, 34 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/esc/Makefile b/regress/usr.bin/mandoc/roff/esc/Makefile
index 1d63a92f488..5327ae0077c 100644
--- a/regress/usr.bin/mandoc/roff/esc/Makefile
+++ b/regress/usr.bin/mandoc/roff/esc/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.7 2014/12/02 10:07:17 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2014/12/03 01:06:22 schwarze Exp $
-REGRESS_TARGETS = one two multi B c c_man f h w z ignore
+REGRESS_TARGETS = one two multi B c c_man e f h w z ignore
LINT_TARGETS = B h w
# Postprocessing to remove "character backspace" sequences
diff --git a/regress/usr.bin/mandoc/roff/esc/e.in b/regress/usr.bin/mandoc/roff/esc/e.in
new file mode 100644
index 00000000000..c0f876923be
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/esc/e.in
@@ -0,0 +1,19 @@
+.Dd December 3, 2014
+.Dt ESC-E 1
+.Os OpenBSD
+.Sh NAME
+.Nm esc-e
+.Nd escaping backslashes
+.Sh DESCRIPTION
+In plain text: "\e" and "\\"
+.Pp
+On macro lines:
+.Qq \e(at
+and
+.Qq \\(at
+.Pp
+In a macro definition:
+.de mytest
+"\e$1" and "\\$2"
+..
+.mytest one two
diff --git a/regress/usr.bin/mandoc/roff/esc/e.out_ascii b/regress/usr.bin/mandoc/roff/esc/e.out_ascii
new file mode 100644
index 00000000000..75665168953
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/esc/e.out_ascii
@@ -0,0 +1,13 @@
+ESC-E(1) General Commands Manual ESC-E(1)
+
+NNAAMMEE
+ eesscc--ee - escaping backslashes
+
+DDEESSCCRRIIPPTTIIOONN
+ In plain text: "\" and "\"
+
+ On macro lines: "\(at" and "@"
+
+ In a macro definition: "\$1" and "two"
+
+OpenBSD December 3, 2014 OpenBSD