summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Ns
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Ns')
-rw-r--r--regress/mdoc/Ns/Makefile6
-rw-r--r--regress/mdoc/Ns/position.in29
-rw-r--r--regress/mdoc/Ns/position.out_ascii19
-rw-r--r--regress/mdoc/Ns/position.out_lint1
-rw-r--r--regress/mdoc/Ns/punct.in13
-rw-r--r--regress/mdoc/Ns/punct.out_ascii10
6 files changed, 78 insertions, 0 deletions
diff --git a/regress/mdoc/Ns/Makefile b/regress/mdoc/Ns/Makefile
new file mode 100644
index 00000000..45db66cc
--- /dev/null
+++ b/regress/mdoc/Ns/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.5 2014/07/02 11:42:56 schwarze Exp $
+
+REGRESS_TARGETS = position punct
+LINT_TARGETS = position
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Ns/position.in b/regress/mdoc/Ns/position.in
new file mode 100644
index 00000000..1325df25
--- /dev/null
+++ b/regress/mdoc/Ns/position.in
@@ -0,0 +1,29 @@
+.Dd September 15, 2013
+.Dt NS-POSITION 1
+.Os OpenBSD
+.Sh NAME
+.Nm Ns-position
+.Nd effect of the position of the no space macro on the line
+.Sh DESCRIPTION
+At the beginning of a macro line:
+.Op before
+.Ns Op after
+.Pp
+After just a block closing macro:
+.Oo before
+.Oc Ns Op after
+.Pp
+After some macro and a block closing:
+.Oo before
+.No still before Oc Ns Op after
+.Pp
+In the middle of a macro line:
+.Oo before Oc Ns Op after
+.Pp
+At the end of a macro line:
+.Oo before Oc Ns
+.Op after
+.Pp
+At the end of partial implicit:
+.Op before Ns
+.Op after
diff --git a/regress/mdoc/Ns/position.out_ascii b/regress/mdoc/Ns/position.out_ascii
new file mode 100644
index 00000000..a2bd6c45
--- /dev/null
+++ b/regress/mdoc/Ns/position.out_ascii
@@ -0,0 +1,19 @@
+NS-POSITION(1) General Commands Manual NS-POSITION(1)
+
+NNAAMMEE
+ NNss--ppoossiittiioonn - effect of the position of the no space macro on the line
+
+DDEESSCCRRIIPPTTIIOONN
+ At the beginning of a macro line: [before] [after]
+
+ After just a block closing macro: [before][after]
+
+ After some macro and a block closing: [before still before][after]
+
+ In the middle of a macro line: [before][after]
+
+ At the end of a macro line: [before][after]
+
+ At the end of partial implicit: [before][after]
+
+OpenBSD September 15, 2013 OpenBSD
diff --git a/regress/mdoc/Ns/position.out_lint b/regress/mdoc/Ns/position.out_lint
new file mode 100644
index 00000000..d21bfe12
--- /dev/null
+++ b/regress/mdoc/Ns/position.out_lint
@@ -0,0 +1 @@
+mandoc: position.in:10:2: WARNING: skipping no-space macro
diff --git a/regress/mdoc/Ns/punct.in b/regress/mdoc/Ns/punct.in
new file mode 100644
index 00000000..d55cd322
--- /dev/null
+++ b/regress/mdoc/Ns/punct.in
@@ -0,0 +1,13 @@
+.Dd October 1, 2010
+.Dt NS-PUNCT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Ns-punct
+.Nd punctuation after the no space macro
+.Sh DESCRIPTION
+Normal words:
+.No no Ns ns No no
+Opening punctuation:
+.No no Ns ( ns No no
+Closing punctuation:
+.No no Ns ns ) No no
diff --git a/regress/mdoc/Ns/punct.out_ascii b/regress/mdoc/Ns/punct.out_ascii
new file mode 100644
index 00000000..2afbf866
--- /dev/null
+++ b/regress/mdoc/Ns/punct.out_ascii
@@ -0,0 +1,10 @@
+NS-PUNCT(1) General Commands Manual NS-PUNCT(1)
+
+NNAAMMEE
+ NNss--ppuunncctt - punctuation after the no space macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Normal words: nons no Opening punctuation: no(ns no Closing punctuation:
+ nons) no
+
+OpenBSD October 1, 2010 OpenBSD