tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* -Tmarkdown: don't wrap mailtos in <>
@ 2017-03-09  1:47 Anthony J. Bentley
  2017-03-09  2:32 ` Ingo Schwarze
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony J. Bentley @ 2017-03-09  1:47 UTC (permalink / raw)
  To: tech

Hi,

Currently -Tmarkdown wraps Mt email addresses in <>. That's not correct;
in manpages the <> are provided by a parent Aq block.

Index: usr.bin/mandoc/mdoc_markdown.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/mdoc_markdown.c,v
retrieving revision 1.14
diff -u -p -r1.14 mdoc_markdown.c
--- usr.bin/mandoc/mdoc_markdown.c	8 Mar 2017 19:23:23 -0000	1.14
+++ usr.bin/mandoc/mdoc_markdown.c	9 Mar 2017 01:46:30 -0000
@@ -211,7 +211,7 @@ static	const struct md_act md_acts[MDOC_
 	{ NULL, NULL, md_post_Lb, NULL, NULL }, /* Lb */
 	{ NULL, md_pre_Pp, NULL, NULL, NULL }, /* Lp */
 	{ NULL, md_pre_Lk, NULL, NULL, NULL }, /* Lk */
-	{ NULL, md_pre_raw, md_post_raw, "<", ">" }, /* Mt */
+	{ NULL, md_pre_raw, md_post_raw, NULL, NULL }, /* Mt */
 	{ md_cond_body, md_pre_word, md_post_word, "{", "}" }, /* Brq */
 	{ md_cond_body, md_pre_word, md_post_word, "{", "}" }, /* Bro */
 	{ NULL, NULL, NULL, NULL, NULL }, /* Brc */
Index: regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown
===================================================================
RCS file: /cvs/src/regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown,v
retrieving revision 1.1
diff -u -p -r1.1 author.out_markdown
--- regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown	7 Mar 2017 13:09:08 -0000	1.1
+++ regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown	9 Mar 2017 01:46:30 -0000
@@ -6,11 +6,11 @@ AQ-AUTHOR(1) - General Commands Manual
 
 # DESCRIPTION
 
-Name &lt;<addr>&gt; Name &lt;<addr>&gt;
+Name &lt;addr&gt; Name &lt;addr&gt;
 
 # AUTHORS
 
-Name &lt;<addr>&gt;  
-Name &lt;<addr>&gt;
+Name &lt;addr&gt;  
+Name &lt;addr&gt;
 
 OpenBSD - November 19, 2014
Index: regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown
===================================================================
RCS file: /cvs/src/regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown,v
retrieving revision 1.1
diff -u -p -r1.1 simple.out_markdown
--- regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown	5 Mar 2017 19:59:26 -0000	1.1
+++ regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown	9 Mar 2017 01:46:30 -0000
@@ -7,9 +7,9 @@ MT-SIMPLE(1) - General Commands Manual
 # DESCRIPTION
 
 Please send mail to
-<schwarze@openbsd.org>.
+schwarze@openbsd.org.
 
 Do not send mail to
-<~>.
+~.
 
 OpenBSD - February 17, 2010
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-09 16:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09  1:47 -Tmarkdown: don't wrap mailtos in <> Anthony J. Bentley
2017-03-09  2:32 ` Ingo Schwarze
2017-03-09  7:27   ` Anthony J. Bentley
2017-03-09 16:39     ` Ingo 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).