diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-10 01:48:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-10 01:48:53 +0000 |
commit | 81aa584b2fb42578083c3724876f0d11d9e09e4d (patch) | |
tree | 542564f1972e19ff89c99a2408036b552424ca0a /regress/mdoc/Fo | |
parent | 0a22b0c0a17ed600835a33cebfe2cc2affd8ffc8 (diff) | |
download | mandoc-81aa584b2fb42578083c3724876f0d11d9e09e4d.tar.gz |
style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful
Diffstat (limited to 'regress/mdoc/Fo')
-rw-r--r-- | regress/mdoc/Fo/Makefile | 2 | ||||
-rw-r--r-- | regress/mdoc/Fo/punct.in | 6 | ||||
-rw-r--r-- | regress/mdoc/Fo/punct.out_ascii | 6 | ||||
-rw-r--r-- | regress/mdoc/Fo/punct.out_lint | 3 | ||||
-rw-r--r-- | regress/mdoc/Fo/punct.out_markdown | 6 |
5 files changed, 13 insertions, 10 deletions
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 |