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/Oo/Makefile | 1 + regress/mdoc/Oo/punct.in | 6 +++++- regress/mdoc/Oo/punct.out_ascii | 4 +++- regress/mdoc/Oo/punct.out_lint | 1 + regress/mdoc/Oo/punct.out_markdown | 5 ++++- 5 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 regress/mdoc/Oo/punct.out_lint (limited to 'regress/mdoc/Oo') 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 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 -- cgit v1.2.3-56-ge451