aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Ar
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
commitabed8762b0477726a99b6150b73b539d4f5249e3 (patch)
tree076599b497ae4774c6fabb804bbf540eb6688d97 /regress/mdoc/Ar
parentd1008ef735ba0cceb18ab8b96c6a029d71ac93da (diff)
downloadmandoc-abed8762b0477726a99b6150b73b539d4f5249e3.tar.gz
mandoc-abed8762b0477726a99b6150b73b539d4f5249e3.tar.zst
mandoc-abed8762b0477726a99b6150b73b539d4f5249e3.zip
style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful
Diffstat (limited to 'regress/mdoc/Ar')
-rw-r--r--regress/mdoc/Ar/Makefile1
-rw-r--r--regress/mdoc/Ar/punct.in5
-rw-r--r--regress/mdoc/Ar/punct.out_ascii4
-rw-r--r--regress/mdoc/Ar/punct.out_lint1
-rw-r--r--regress/mdoc/Ar/punct.out_markdown5
5 files changed, 13 insertions, 3 deletions
diff --git a/regress/mdoc/Ar/Makefile b/regress/mdoc/Ar/Makefile
index 2d1d895c..0acd2e05 100644
--- a/regress/mdoc/Ar/Makefile
+++ b/regress/mdoc/Ar/Makefile
@@ -1,5 +1,6 @@
# $OpenBSD: Makefile,v 1.3 2012/07/09 17:52:09 schwarze Exp $
REGRESS_TARGETS = punct font
+LINT_TARGETS = punct
.include <bsd.regress.mk>
diff --git a/regress/mdoc/Ar/punct.in b/regress/mdoc/Ar/punct.in
index 51044001..71abc258 100644
--- a/regress/mdoc/Ar/punct.in
+++ b/regress/mdoc/Ar/punct.in
@@ -1,4 +1,4 @@
-.Dd August 21, 2014
+.Dd June 9, 2017
.Dt AR-PUNCT 1
.Os OpenBSD
.Sh NAME
@@ -40,3 +40,6 @@ op bracket
.Pp
quoted punctuation:
.Ar a "(" b "|" c ")" d "," "Sy" bold .
+.Pp
+missing blank:
+.Ar arg.
diff --git a/regress/mdoc/Ar/punct.out_ascii b/regress/mdoc/Ar/punct.out_ascii
index 01426c58..e34b3fdc 100644
--- a/regress/mdoc/Ar/punct.out_ascii
+++ b/regress/mdoc/Ar/punct.out_ascii
@@ -11,4 +11,6 @@ DDEESSCCRRIIPPTTIIOONN
quoted punctuation: _a (_b | _c) _d, bboolldd.
-OpenBSD August 21, 2014 OpenBSD
+ missing blank: _a_r_g_.
+
+OpenBSD June 9, 2017 OpenBSD
diff --git a/regress/mdoc/Ar/punct.out_lint b/regress/mdoc/Ar/punct.out_lint
new file mode 100644
index 00000000..73e9ca6e
--- /dev/null
+++ b/regress/mdoc/Ar/punct.out_lint
@@ -0,0 +1 @@
+mandoc: punct.in:45:8: STYLE: no blank before trailing delimiter: Ar arg.
diff --git a/regress/mdoc/Ar/punct.out_markdown b/regress/mdoc/Ar/punct.out_markdown
index 932b8660..ab03a7b5 100644
--- a/regress/mdoc/Ar/punct.out_markdown
+++ b/regress/mdoc/Ar/punct.out_markdown
@@ -42,4 +42,7 @@ op bracket
quoted punctuation:
*a* (*b* | *c*) *d*, **bold**.
-OpenBSD - August 21, 2014
+missing blank:
+*arg.*
+
+OpenBSD - June 9, 2017