summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Oo
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-10 01:48:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-10 01:48:53 +0000
commit81aa584b2fb42578083c3724876f0d11d9e09e4d (patch)
tree542564f1972e19ff89c99a2408036b552424ca0a /regress/mdoc/Oo
parent0a22b0c0a17ed600835a33cebfe2cc2affd8ffc8 (diff)
downloadmandoc-81aa584b2fb42578083c3724876f0d11d9e09e4d.tar.gz
style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful
Diffstat (limited to 'regress/mdoc/Oo')
-rw-r--r--regress/mdoc/Oo/Makefile1
-rw-r--r--regress/mdoc/Oo/punct.in6
-rw-r--r--regress/mdoc/Oo/punct.out_ascii4
-rw-r--r--regress/mdoc/Oo/punct.out_lint1
-rw-r--r--regress/mdoc/Oo/punct.out_markdown5
5 files changed, 14 insertions, 3 deletions
diff --git a/regress/mdoc/Oo/Makefile b/regress/mdoc/Oo/Makefile
index 67bf2449..e98c9475 100644
--- a/regress/mdoc/Oo/Makefile
+++ b/regress/mdoc/Oo/Makefile
@@ -1,5 +1,6 @@
# $OpenBSD: Makefile,v 1.1 2012/07/07 14:10:55 schwarze Exp $
REGRESS_TARGETS = punct
+LINT_TARGETS = punct
.include <bsd.regress.mk>
diff --git a/regress/mdoc/Oo/punct.in b/regress/mdoc/Oo/punct.in
index 59ea4bb7..80e2da6e 100644
--- a/regress/mdoc/Oo/punct.in
+++ b/regress/mdoc/Oo/punct.in
@@ -1,4 +1,4 @@
-.Dd July 6, 2012
+.Dd June 9, 2017
.Dt OO-PUNCT 1
.Os OpenBSD
.Sh NAME
@@ -21,3 +21,7 @@ at the end:
.Oo Oo a (
.Oc |
.Oc
+.Pp
+missing blank:
+.Oo a.
+.Oc
diff --git a/regress/mdoc/Oo/punct.out_ascii b/regress/mdoc/Oo/punct.out_ascii
index 68addf8d..23fabbcb 100644
--- a/regress/mdoc/Oo/punct.out_ascii
+++ b/regress/mdoc/Oo/punct.out_ascii
@@ -10,4 +10,6 @@ DDEESSCCRRIIPPTTIIOONN
at the end: [[a (] |]
-OpenBSD July 6, 2012 OpenBSD
+ missing blank: [a.]
+
+OpenBSD June 9, 2017 OpenBSD
diff --git a/regress/mdoc/Oo/punct.out_lint b/regress/mdoc/Oo/punct.out_lint
new file mode 100644
index 00000000..fa02f065
--- /dev/null
+++ b/regress/mdoc/Oo/punct.out_lint
@@ -0,0 +1 @@
+mandoc: punct.in:26:6: STYLE: no blank before trailing delimiter: Oo a.
diff --git a/regress/mdoc/Oo/punct.out_markdown b/regress/mdoc/Oo/punct.out_markdown
index e6525b1d..6527e5e1 100644
--- a/regress/mdoc/Oo/punct.out_markdown
+++ b/regress/mdoc/Oo/punct.out_markdown
@@ -20,4 +20,7 @@ at the end:
\[\[a (]
|]
-OpenBSD - July 6, 2012
+missing blank:
+\[a.]
+
+OpenBSD - June 9, 2017