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/Sy/punct.in | 5 ++++- regress/mdoc/Sy/punct.out_ascii | 4 +++- regress/mdoc/Sy/punct.out_lint | 1 + regress/mdoc/Sy/punct.out_markdown | 5 ++++- 4 files changed, 12 insertions(+), 3 deletions(-) (limited to 'regress/mdoc/Sy') diff --git a/regress/mdoc/Sy/punct.in b/regress/mdoc/Sy/punct.in index 764e8aba..71094c81 100644 --- a/regress/mdoc/Sy/punct.in +++ b/regress/mdoc/Sy/punct.in @@ -1,4 +1,4 @@ -.Dd November 17, 2014 +.Dd June 9, 2017 .Dt SY-PUNCT 1 .Os OpenBSD .Sh NAME @@ -81,3 +81,6 @@ Quoted: .Sy "a . b Nm" "Em" italic .Sy ". b Nm" .Sy "." +.Pp +Missing blank: +.Sy a. diff --git a/regress/mdoc/Sy/punct.out_ascii b/regress/mdoc/Sy/punct.out_ascii index 2f368573..bb2a433e 100644 --- a/regress/mdoc/Sy/punct.out_ascii +++ b/regress/mdoc/Sy/punct.out_ascii @@ -23,4 +23,6 @@ DDEESSCCRRIIPPTTIIOONN Quoted: aa .. bb NNmm _i_t_a_l_i_c .. bb NNmm . -OpenBSD November 17, 2014 OpenBSD + Missing blank: aa.. + +OpenBSD June 9, 2017 OpenBSD diff --git a/regress/mdoc/Sy/punct.out_lint b/regress/mdoc/Sy/punct.out_lint index 31f1d565..af0021a1 100644 --- a/regress/mdoc/Sy/punct.out_lint +++ b/regress/mdoc/Sy/punct.out_lint @@ -23,3 +23,4 @@ mandoc: punct.in:71:7: WARNING: skipping empty macro: Sy mandoc: punct.in:74:7: WARNING: skipping empty macro: Sy mandoc: punct.in:75:7: WARNING: skipping empty macro: Sy mandoc: punct.in:83:2: WARNING: skipping empty macro: Sy +mandoc: punct.in:86:6: STYLE: no blank before trailing delimiter: Sy a. diff --git a/regress/mdoc/Sy/punct.out_markdown b/regress/mdoc/Sy/punct.out_markdown index 5e3a0c1c..c198163e 100644 --- a/regress/mdoc/Sy/punct.out_markdown +++ b/regress/mdoc/Sy/punct.out_markdown @@ -83,4 +83,7 @@ Quoted: **. b Nm** . -OpenBSD - November 17, 2014 +Missing blank: +**a.** + +OpenBSD - June 9, 2017 -- cgit