source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: test new MT macro
@ 2017-06-25 14:09 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-25 14:09 UTC (permalink / raw)
  To: source

Log Message:
-----------
test new MT macro

Modified Files:
--------------
    mandoc/regress/man:
        Makefile

Added Files:
-----------
    mandoc/regress/man/MT:
        Makefile
        args.in
        args.out_ascii
        args.out_lint
        noME.in
        noME.out_ascii
        noME.out_lint

Revision Data
-------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/man/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/man/Makefile -Lregress/man/Makefile -u -p -r1.1 -r1.2
--- regress/man/Makefile
+++ regress/man/Makefile
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.17 2015/03/20 16:09:25 schwarze Exp $
 
-SUBDIR = B BI EX HP IP OP PD PP RS SH SS TH TP TS UR nf blank
+SUBDIR = B BI EX HP IP MT OP PD PP RS SH SS TH TP TS UR nf blank
 
 .include "../Makefile.sub"
 .include <bsd.subdir.mk>
--- /dev/null
+++ regress/man/MT/noME.out_ascii
@@ -0,0 +1,15 @@
+MT-NOME(1)                  General Commands Manual                 MT-NOME(1)
+
+
+
+N\bNA\bAM\bME\bE
+       MT-noME - unclosed mailto macro
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       lonely ME:
+
+       argument plus text: invalid address <test@example.com>
+
+
+
+OpenBSD                          June 25, 2017                      MT-NOME(1)
--- /dev/null
+++ regress/man/MT/args.in
@@ -0,0 +1,29 @@
+.TH MT-ARGS 1 "June 25, 2017" OpenBSD
+.SH NAME
+MT-args \- argument handling of the man-ext mailto macro
+.SH DESCRIPTION
+argument plus text:
+.MT test@example.com
+invalid
+address
+.ME
+.PP
+argument but no text:
+.MT test@example.com
+.ME
+.PP
+no argument, but text:
+.MT
+some text
+.ME
+.PP
+two arguments plus text:
+.MT first second
+some text
+.ME
+.PP
+two arguments, but no text:
+.MT first second
+.ME
+.PP
+final text
--- /dev/null
+++ regress/man/MT/Makefile
@@ -0,0 +1,12 @@
+# $OpenBSD: Makefile,v 1.3 2015/02/06 11:54:03 schwarze Exp $
+
+REGRESS_TARGETS	 = args noME
+LINT_TARGETS	 = args noME
+
+# groff-1.22.3 defects:
+# - Without .ME, .MT does not print the address.
+# - But .ME prints <> even without .MT.
+
+SKIP_GROFF	 = noME
+
+.include <bsd.regress.mk>
--- /dev/null
+++ regress/man/MT/args.out_ascii
@@ -0,0 +1,23 @@
+MT-ARGS(1)                  General Commands Manual                 MT-ARGS(1)
+
+
+
+N\bNA\bAM\bME\bE
+       MT-args - argument handling of the man-ext mailto macro
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       argument plus text: invalid address <test@example.com>
+
+       argument but no text: <test@example.com>
+
+       no argument, but text: some text <>
+
+       two arguments plus text: some text <first>
+
+       two arguments, but no text: <first>
+
+       final text
+
+
+
+OpenBSD                          June 25, 2017                      MT-ARGS(1)
--- /dev/null
+++ regress/man/MT/args.out_lint
@@ -0,0 +1,6 @@
+mandoc: args.in:21:11: ERROR: skipping excess arguments: MT ... second
+mandoc: args.in:26:11: ERROR: skipping excess arguments: MT ... second
+mandoc: args.in:12:2: WARNING: empty block: MT
+mandoc: args.in:16:2: WARNING: missing resource identifier, using "": MT
+mandoc: args.in:26:2: WARNING: empty block: MT
+mandoc: args.in: BASE: RCS id missing: (OpenBSD)
--- /dev/null
+++ regress/man/MT/noME.out_lint
@@ -0,0 +1,3 @@
+mandoc: noME.in:6:2: ERROR: skipping end of block that is not open: ME
+mandoc: noME.in:9:2: ERROR: appending missing end of block: MT
+mandoc: noME.in: BASE: RCS id missing: (OpenBSD)
--- /dev/null
+++ regress/man/MT/noME.in
@@ -0,0 +1,11 @@
+.TH MT-NOME 1 "June 25, 2017" OpenBSD
+.SH NAME
+MT-noME \- unclosed mailto macro
+.SH DESCRIPTION
+lonely ME:
+.ME
+.PP
+argument plus text:
+.MT test@example.com
+invalid
+address
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-25 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-25 14:09 mandoc: test new MT macro schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).