* docbook2mdoc: Do not handle <varlistentry> in pnode_print() because it
@ 2019-04-03 14:02 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-03 14:02 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-03 14:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 14:02 docbook2mdoc: Do not handle <varlistentry> in pnode_print() because it 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).