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/Fo/Makefile | 2 +- regress/mdoc/Fo/punct.in | 6 +++--- regress/mdoc/Fo/punct.out_ascii | 6 +++--- regress/mdoc/Fo/punct.out_lint | 3 +++ regress/mdoc/Fo/punct.out_markdown | 6 +++--- 5 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 regress/mdoc/Fo/punct.out_lint (limited to 'regress/mdoc/Fo') diff --git a/regress/mdoc/Fo/Makefile b/regress/mdoc/Fo/Makefile index 71242c8e..09941a52 100644 --- a/regress/mdoc/Fo/Makefile +++ b/regress/mdoc/Fo/Makefile @@ -2,7 +2,7 @@ REGRESS_TARGETS = basic break eos font noarg nohead REGRESS_TARGETS += obsolete punct section warn -LINT_TARGETS = noarg nohead obsolete warn +LINT_TARGETS = noarg nohead obsolete punct warn # groff-1.22.3 defects: # - .Fo without an argument prints unbalanced parentheses diff --git a/regress/mdoc/Fo/punct.in b/regress/mdoc/Fo/punct.in index e1657ec7..d17b5330 100644 --- a/regress/mdoc/Fo/punct.in +++ b/regress/mdoc/Fo/punct.in @@ -6,8 +6,8 @@ .Nd punctuation on function input lines .Sh DESCRIPTION .Ft double -.Fn sin "," cos "Em" italic +.Fn sin. "," cos "Em" italic .Pp -.Fa x "," y "Sy" bold +.Fa x "," y: "Sy" bold .Pp -.Ft int "," float "Sy" bold +.Ft int "," float: "Sy" bold diff --git a/regress/mdoc/Fo/punct.out_ascii b/regress/mdoc/Fo/punct.out_ascii index febf646e..26c31776 100644 --- a/regress/mdoc/Fo/punct.out_ascii +++ b/regress/mdoc/Fo/punct.out_ascii @@ -4,10 +4,10 @@ NNAAMMEE FFoo--ppuunncctt - punctuation on function input lines DDEESSCCRRIIPPTTIIOONN - _d_o_u_b_l_e ssiinn(), cos _i_t_a_l_i_c + _d_o_u_b_l_e ssiinn..(), cos _i_t_a_l_i_c - _x, _y bboolldd + _x, _y_: bboolldd - _i_n_t, _f_l_o_a_t bboolldd + _i_n_t, _f_l_o_a_t_: bboolldd OpenBSD May 20, 2017 OpenBSD diff --git a/regress/mdoc/Fo/punct.out_lint b/regress/mdoc/Fo/punct.out_lint new file mode 100644 index 00000000..a39cf959 --- /dev/null +++ b/regress/mdoc/Fo/punct.out_lint @@ -0,0 +1,3 @@ +mandoc: punct.in:9:8: STYLE: no blank before trailing delimiter: Fn sin. +mandoc: punct.in:11:12: STYLE: no blank before trailing delimiter: Fa y: +mandoc: punct.in:13:18: STYLE: no blank before trailing delimiter: Ft float: diff --git a/regress/mdoc/Fo/punct.out_markdown b/regress/mdoc/Fo/punct.out_markdown index 88524f6f..6e9fe5ff 100644 --- a/regress/mdoc/Fo/punct.out_markdown +++ b/regress/mdoc/Fo/punct.out_markdown @@ -7,10 +7,10 @@ FO-PUNCT(1) - General Commands Manual # DESCRIPTION *double* -**sin**(), cos *italic* +**sin.**(), cos *italic* -*x*, *y* **bold** +*x*, *y:* **bold** -*int*, *float* **bold** +*int*, *float:* **bold** OpenBSD - May 20, 2017 -- cgit