From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 825ab612 for ; Thu, 25 Apr 2019 12:58:29 -0500 (EST) Date: Thu, 25 Apr 2019 12:58:29 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: docbook2mdoc: Make an alias for
. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- Make an alias for
. This is not perfect because if starts with a , 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