summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Op
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/Op
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/Op')
-rw-r--r--regress/mdoc/Op/Makefile2
-rw-r--r--regress/mdoc/Op/punct.in5
-rw-r--r--regress/mdoc/Op/punct.out_ascii4
-rw-r--r--regress/mdoc/Op/punct.out_lint1
-rw-r--r--regress/mdoc/Op/punct.out_markdown5
5 files changed, 13 insertions, 4 deletions
diff --git a/regress/mdoc/Op/Makefile b/regress/mdoc/Op/Makefile
index ab934a4e..4a2d6fda 100644
--- a/regress/mdoc/Op/Makefile
+++ b/regress/mdoc/Op/Makefile
@@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.3 2014/07/02 11:42:56 schwarze Exp $
REGRESS_TARGETS = break broken punct
-LINT_TARGETS = break broken
+LINT_TARGETS = break broken punct
SKIP_GROFF = break
SKIP_ASCII = break
diff --git a/regress/mdoc/Op/punct.in b/regress/mdoc/Op/punct.in
index 7bc99332..7c09e574 100644
--- a/regress/mdoc/Op/punct.in
+++ b/regress/mdoc/Op/punct.in
@@ -1,4 +1,4 @@
-.Dd June 24, 2011
+.Dd June 9, 2017
.Dt OP-PUNCT 1
.Os OpenBSD
.Sh NAME
@@ -29,3 +29,6 @@ more than one:
.Op ( (
.Op | |
.Op . .
+.Pp
+Missing blank:
+.Op a.
diff --git a/regress/mdoc/Op/punct.out_ascii b/regress/mdoc/Op/punct.out_ascii
index 53251b52..3f5b22cd 100644
--- a/regress/mdoc/Op/punct.out_ascii
+++ b/regress/mdoc/Op/punct.out_ascii
@@ -14,4 +14,6 @@ DDEESSCCRRIIPPTTIIOONN
more than one: (([] [| |] []..
-OpenBSD June 24, 2011 OpenBSD
+ Missing blank: [a.]
+
+OpenBSD June 9, 2017 OpenBSD
diff --git a/regress/mdoc/Op/punct.out_lint b/regress/mdoc/Op/punct.out_lint
new file mode 100644
index 00000000..fff31aea
--- /dev/null
+++ b/regress/mdoc/Op/punct.out_lint
@@ -0,0 +1 @@
+mandoc: punct.in:34:6: STYLE: no blank before trailing delimiter: Op a.
diff --git a/regress/mdoc/Op/punct.out_markdown b/regress/mdoc/Op/punct.out_markdown
index 114bd7af..98ee2e72 100644
--- a/regress/mdoc/Op/punct.out_markdown
+++ b/regress/mdoc/Op/punct.out_markdown
@@ -31,4 +31,7 @@ more than one:
\[| |]
\[]..
-OpenBSD - June 24, 2011
+Missing blank:
+\[a.]
+
+OpenBSD - June 9, 2017