From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: Do not handle <varlistentry> in pnode_print() because it
Date: Wed, 3 Apr 2019 09:02:37 -0500 (EST) [thread overview]
Message-ID: <e3fd32b9e75c5ebc@fantadrom.bsd.lv> (raw)
Log Message:
-----------
Do not handle <varlistentry> in pnode_print()
because it generates .It which must not occur outside .Bl.
Modified Files:
--------------
docbook2mdoc:
docbook2mdoc.c
statistics.c
Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.84 -r1.85
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -624,7 +624,7 @@ pnode_printvariablelist(struct format *p
macro_line(p, "Bl -tag -width Ds");
TAILQ_FOREACH(pp, &pn->childq, child) {
if (pp->node == NODE_VARLISTENTRY)
- pnode_print(p, pp);
+ pnode_printvarlistentry(p, pp);
else
macro_nodeline(p, "It", pp, 0);
}
@@ -890,9 +890,6 @@ pnode_print(struct format *p, struct pno
break;
case NODE_VARIABLELIST:
pnode_printvariablelist(p, pn);
- break;
- case NODE_VARLISTENTRY:
- pnode_printvarlistentry(p, pn);
break;
case NODE_VARNAME:
macro_open(p, "Va");
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lstatistics.c -Lstatistics.c -u -p -r1.6 -r1.7
--- statistics.c
+++ statistics.c
@@ -351,6 +351,9 @@ main(int argc, char *argv[])
table_add("chapter", "title");
table_add("entry", NULL);
table_add("informaltable", "tgroup");
+ table_add("itemizedlist", "listitem");
+ table_add("listitem", NULL);
+ table_add("orderedlist", "listitem");
table_add("para", NULL);
table_add("refsect1", "title");
table_add("refsect2", "title");
@@ -363,11 +366,15 @@ main(int argc, char *argv[])
table_add("table", "tgroup");
table_add("table", "title");
table_add("tbody", "row");
+ table_add("term", NULL);
table_add("tgroup", "colspec");
table_add("tgroup", "tbody");
table_add("tgroup", "thead");
table_add("thead", "row");
table_add("title", "TEXT");
+ table_add("variablelist", "varlistentry");
+ table_add("varlistentry", "listitem");
+ table_add("varlistentry", "term");
}
table_add(NULL, NULL);
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
reply other threads:[~2019-04-03 14:02 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=e3fd32b9e75c5ebc@fantadrom.bsd.lv \
--to=schwarze@mandoc.bsd.lv \
--cc=source@mandoc.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).