tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@anjbe.name>
To: tech@mdocml.bsd.lv
Subject: -Tmarkdown: don't wrap mailtos in <>
Date: Wed, 08 Mar 2017 18:47:52 -0700	[thread overview]
Message-ID: <34636.1489024072@cathet.us> (raw)

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

             reply	other threads:[~2017-03-09  1:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09  1:47 Anthony J. Bentley [this message]
2017-03-09  2:32 ` Ingo Schwarze
2017-03-09  7:27   ` Anthony J. Bentley
2017-03-09 16:39     ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34636.1489024072@cathet.us \
    --to=anthony@anjbe.name \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).