From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: pod2mdoc: Not all perlpod(1) documents mark up function arguments with
Date: Mon, 23 Feb 2015 10:12:36 -0500 (EST) [thread overview]
Message-ID: <1436161473717553107.enqueue@fantadrom.bsd.lv> (raw)
Log Message:
-----------
Not all perlpod(1) documents mark up function arguments with B<>.
Some use I<> instead.
Modified Files:
--------------
pod2mdoc:
pod2mdoc.c
Revision Data
-------------
Index: pod2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/pod2mdoc/pod2mdoc.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.58 -r1.59
--- pod2mdoc.c
+++ pod2mdoc.c
@@ -647,9 +647,6 @@ formatcode(struct state *st, const char
*/
switch (fmt) {
- case (FMT_ITALIC):
- fputs("Em", stdout);
- break;
case (FMT_BOLD):
if (SECT_SYNOPSIS == st->sect) {
if (1 == dsz && '-' == buf[*start])
@@ -660,6 +657,8 @@ formatcode(struct state *st, const char
fputs("Ar", stdout);
break;
}
+ /* FALLTHROUGH */
+ case (FMT_ITALIC):
i = 0;
uc = buf[*start];
while (isalnum(uc) || '_' == uc || ' ' == uc)
@@ -678,7 +677,7 @@ formatcode(struct state *st, const char
fputs("Vt", stdout);
break;
default:
- fputs("Sy", stdout);
+ fputs(FMT_BOLD == fmt ? "Sy" : "Em", stdout);
break;
}
break;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2015-02-23 15:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1436161473717553107.enqueue@fantadrom.bsd.lv \
--to=schwarze@mdocml.bsd.lv \
--cc=source@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).