From 81aa584b2fb42578083c3724876f0d11d9e09e4d 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/Brq/Makefile | 1 + regress/mdoc/Brq/empty.in | 6 +++--- regress/mdoc/Brq/empty.out_ascii | 4 ++-- regress/mdoc/Brq/empty.out_lint | 2 ++ regress/mdoc/Brq/empty.out_markdown | 6 +++--- 5 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 regress/mdoc/Brq/empty.out_lint (limited to 'regress/mdoc/Brq') diff --git a/regress/mdoc/Brq/Makefile b/regress/mdoc/Brq/Makefile index 755b036a..716f480f 100644 --- a/regress/mdoc/Brq/Makefile +++ b/regress/mdoc/Brq/Makefile @@ -1,5 +1,6 @@ # $OpenBSD: Makefile,v 1.1.1.1 2011/12/04 03:09:25 schwarze Exp $ REGRESS_TARGETS = empty +LINT_TARGETS = empty .include diff --git a/regress/mdoc/Brq/empty.in b/regress/mdoc/Brq/empty.in index 5d317474..4677820d 100644 --- a/regress/mdoc/Brq/empty.in +++ b/regress/mdoc/Brq/empty.in @@ -1,4 +1,4 @@ -.Dd October 21, 2010 +.Dd June 9, 2017 .Dt BRQ-EMPTY 1 .Os OpenBSD .Sh NAME @@ -8,7 +8,7 @@ An empty .Brq and a full -.Brq "(" user@host +.Brq "(" user@host) quotation. And another -.Bro "(" full Brc one "Sy" bold . +.Bro "(" full) Brc one "Sy" bold . diff --git a/regress/mdoc/Brq/empty.out_ascii b/regress/mdoc/Brq/empty.out_ascii index 9d638d0c..31cdd9e1 100644 --- a/regress/mdoc/Brq/empty.out_ascii +++ b/regress/mdoc/Brq/empty.out_ascii @@ -4,7 +4,7 @@ NNAAMMEE BBrrqq--eemmppttyy - empty implicit enclosure macros DDEESSCCRRIIPPTTIIOONN - An empty {} and a full ({user@host} quotation. And another ({full} one + An empty {} and a full ({user@host)} quotation. And another ({full)} one bboolldd. -OpenBSD October 21, 2010 OpenBSD +OpenBSD June 9, 2017 OpenBSD diff --git a/regress/mdoc/Brq/empty.out_lint b/regress/mdoc/Brq/empty.out_lint new file mode 100644 index 00000000..15ca12f6 --- /dev/null +++ b/regress/mdoc/Brq/empty.out_lint @@ -0,0 +1,2 @@ +mandoc: empty.in:11:19: STYLE: no blank before trailing delimiter: Brq user@host) +mandoc: empty.in:14:14: STYLE: no blank before trailing delimiter: Bro full) diff --git a/regress/mdoc/Brq/empty.out_markdown b/regress/mdoc/Brq/empty.out_markdown index a335a57c..82b1dd7e 100644 --- a/regress/mdoc/Brq/empty.out_markdown +++ b/regress/mdoc/Brq/empty.out_markdown @@ -9,9 +9,9 @@ BRQ-EMPTY(1) - General Commands Manual An empty {} and a full -({user@host} +({user@host)} quotation. And another -({full} one **bold**. +({full)} one **bold**. -OpenBSD - October 21, 2010 +OpenBSD - June 9, 2017 -- cgit