aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Mt
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-10 01:48:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-10 01:48:53 +0000
commitabed8762b0477726a99b6150b73b539d4f5249e3 (patch)
tree076599b497ae4774c6fabb804bbf540eb6688d97 /regress/mdoc/Mt
parentd1008ef735ba0cceb18ab8b96c6a029d71ac93da (diff)
downloadmandoc-abed8762b0477726a99b6150b73b539d4f5249e3.tar.gz
mandoc-abed8762b0477726a99b6150b73b539d4f5249e3.tar.zst
mandoc-abed8762b0477726a99b6150b73b539d4f5249e3.zip
style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful
Diffstat (limited to 'regress/mdoc/Mt')
-rw-r--r--regress/mdoc/Mt/Makefile1
-rw-r--r--regress/mdoc/Mt/simple.in5
-rw-r--r--regress/mdoc/Mt/simple.out_ascii4
-rw-r--r--regress/mdoc/Mt/simple.out_lint1
-rw-r--r--regress/mdoc/Mt/simple.out_markdown5
5 files changed, 13 insertions, 3 deletions
diff --git a/regress/mdoc/Mt/Makefile b/regress/mdoc/Mt/Makefile
index fbeff8b9..bfb496d5 100644
--- a/regress/mdoc/Mt/Makefile
+++ b/regress/mdoc/Mt/Makefile
@@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.5 2012/07/09 17:52:09 schwarze Exp $
REGRESS_TARGETS = simple font
+LINT_TARGETS = simple
# it's unclear what font changes in link destinations should do
diff --git a/regress/mdoc/Mt/simple.in b/regress/mdoc/Mt/simple.in
index 16afb2da..8e7a70ba 100644
--- a/regress/mdoc/Mt/simple.in
+++ b/regress/mdoc/Mt/simple.in
@@ -1,4 +1,4 @@
-.Dd February 17, 2010
+.Dd June 9, 2017
.Dt MT-SIMPLE 1
.Os OpenBSD
.Sh NAME
@@ -8,5 +8,8 @@
Please send mail to
.Mt schwarze@openbsd.org ";" "Sy" bold .
.Pp
+Pay attention to
+.Mt punctuation@localhost.
+.Pp
Do not send mail to
.Mt .
diff --git a/regress/mdoc/Mt/simple.out_ascii b/regress/mdoc/Mt/simple.out_ascii
index 7b2ea545..364a6af6 100644
--- a/regress/mdoc/Mt/simple.out_ascii
+++ b/regress/mdoc/Mt/simple.out_ascii
@@ -6,6 +6,8 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
Please send mail to _s_c_h_w_a_r_z_e_@_o_p_e_n_b_s_d_._o_r_g; bboolldd.
+ Pay attention to _p_u_n_c_t_u_a_t_i_o_n_@_l_o_c_a_l_h_o_s_t_.
+
Do not send mail to _~.
-OpenBSD February 17, 2010 OpenBSD
+OpenBSD June 9, 2017 OpenBSD
diff --git a/regress/mdoc/Mt/simple.out_lint b/regress/mdoc/Mt/simple.out_lint
new file mode 100644
index 00000000..d8e4a1e3
--- /dev/null
+++ b/regress/mdoc/Mt/simple.out_lint
@@ -0,0 +1 @@
+mandoc: simple.in:12:26: STYLE: no blank before trailing delimiter: Mt punctuation@localhost.
diff --git a/regress/mdoc/Mt/simple.out_markdown b/regress/mdoc/Mt/simple.out_markdown
index 9281fee5..d00df48d 100644
--- a/regress/mdoc/Mt/simple.out_markdown
+++ b/regress/mdoc/Mt/simple.out_markdown
@@ -9,7 +9,10 @@ MT-SIMPLE(1) - General Commands Manual
Please send mail to
[schwarze@openbsd.org](mailto:schwarze@openbsd.org); **bold**.
+Pay attention to
+[punctuation@localhost.](mailto:punctuation@localhost.)
+
Do not send mail to
[~](mailto:~).
-OpenBSD - February 17, 2010
+OpenBSD - June 9, 2017