From abed8762b0477726a99b6150b73b539d4f5249e3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 10 Jun 2017 01:48:53 +0000 Subject: style message about missing blank before trailing delimiter; inspired by mdoclint(1), and jmc@ considers it useful --- regress/mdoc/Pa/Makefile | 1 + regress/mdoc/Pa/punct.in | 5 ++++- regress/mdoc/Pa/punct.out_ascii | 4 +++- regress/mdoc/Pa/punct.out_lint | 1 + regress/mdoc/Pa/punct.out_markdown | 5 ++++- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 regress/mdoc/Pa/punct.out_lint (limited to 'regress/mdoc/Pa') diff --git a/regress/mdoc/Pa/Makefile b/regress/mdoc/Pa/Makefile index 5f939fd3..d94cd735 100644 --- a/regress/mdoc/Pa/Makefile +++ b/regress/mdoc/Pa/Makefile @@ -1,6 +1,7 @@ # $OpenBSD: Makefile,v 1.4 2014/08/21 12:56:24 schwarze Exp $ REGRESS_TARGETS = font punct +LINT_TARGETS = punct # XXX The FILES target doesn't currently work. diff --git a/regress/mdoc/Pa/punct.in b/regress/mdoc/Pa/punct.in index c243d742..36dac9e5 100644 --- a/regress/mdoc/Pa/punct.in +++ b/regress/mdoc/Pa/punct.in @@ -1,4 +1,4 @@ -.Dd August 21, 2014 +.Dd June 9, 2017 .Dt PA-PUNCT 1 .Os OpenBSD .Sh NAME @@ -40,3 +40,6 @@ op bracket .Pp quoted punctuation: .Pa a "(" b "|" c ")" d "," "Sy" bold . +.Pp +missing blank: +.Pa a. diff --git a/regress/mdoc/Pa/punct.out_ascii b/regress/mdoc/Pa/punct.out_ascii index ee2a7ed6..6dabc348 100644 --- a/regress/mdoc/Pa/punct.out_ascii +++ b/regress/mdoc/Pa/punct.out_ascii @@ -10,4 +10,6 @@ DDEESSCCRRIIPPTTIIOONN quoted punctuation: _a (_b | _c) _d, bboolldd. -OpenBSD August 21, 2014 OpenBSD + missing blank: _a_. + +OpenBSD June 9, 2017 OpenBSD diff --git a/regress/mdoc/Pa/punct.out_lint b/regress/mdoc/Pa/punct.out_lint new file mode 100644 index 00000000..5c50094f --- /dev/null +++ b/regress/mdoc/Pa/punct.out_lint @@ -0,0 +1 @@ +mandoc: punct.in:45:6: STYLE: no blank before trailing delimiter: Pa a. diff --git a/regress/mdoc/Pa/punct.out_markdown b/regress/mdoc/Pa/punct.out_markdown index 3730d724..6c6883a6 100644 --- a/regress/mdoc/Pa/punct.out_markdown +++ b/regress/mdoc/Pa/punct.out_markdown @@ -42,4 +42,7 @@ op bracket quoted punctuation: *a* (*b* | *c*) *d*, **bold**. -OpenBSD - August 21, 2014 +missing blank: +*a.* + +OpenBSD - June 9, 2017 -- cgit v1.2.3-56-ge451