* docbook2mdoc: Make <reference> an alias for <section>.
@ 2019-04-25 17:58 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-25 17:58 UTC (permalink / raw)
To: source
Log Message:
-----------
Make <reference> an alias for <section>.
This is not perfect because if <reference> starts with a <title>,
that title is still printed before the NAME section. But at least
the <refentry>s no longer get lumped *into* the <title>.
Issue found by Stephen Gregoratto <dev at sgregoratto dot me>
in Xcomposite(3).
Modified Files:
--------------
docbook2mdoc:
parse.c
statistics.c
Revision Data
-------------
Index: parse.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -Lparse.c -Lparse.c -u -p -r1.51 -r1.52
--- parse.c
+++ parse.c
@@ -104,6 +104,7 @@ static const struct alias aliases[] = {
{ "phrase", NODE_IGNORE },
{ "primary", NODE_DELETE },
{ "property", NODE_PARAMETER },
+ { "reference", NODE_SECTION },
{ "refsect1", NODE_SECTION },
{ "refsect2", NODE_SECTION },
{ "refsect3", NODE_SECTION },
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -Lstatistics.c -Lstatistics.c -u -p -r1.35 -r1.36
--- statistics.c
+++ statistics.c
@@ -368,6 +368,7 @@ main(int argc, char *argv[])
table_add("ROOT", "part");
table_add("ROOT", "preface");
table_add("ROOT", "refentry");
+ table_add("ROOT", "reference");
table_add("ROOT", "sect1");
table_add("ROOT", "sect2");
table_add("acronym", "TEXT");
@@ -527,6 +528,7 @@ main(int argc, char *argv[])
table_add("refentryinfo", "date");
table_add("refentryinfo", "productname");
table_add("refentrytitle", "TEXT");
+ table_add("reference", "refentry");
table_add("refmeta", "manvolnum");
table_add("refmeta", "refentrytitle");
table_add("refmeta", "refmiscinfo");
--
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-25 17:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25 17:58 docbook2mdoc: Make <reference> an alias for <section> 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).