* docbook2mdoc: support <personname> and <email>; based on a patch from
@ 2019-03-22 19:45 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-22 19:45 UTC (permalink / raw)
To: source
Log Message:
-----------
support <personname> and <email>;
based on a patch from Stephen Gregoratto <dev at sgregoratto dot me>
Modified Files:
--------------
docbook2mdoc:
docbook2mdoc.c
extern.h
Revision Data
-------------
Index: extern.h
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/extern.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -Lextern.h -Lextern.h -u -p -r1.31 -r1.32
--- extern.h
+++ extern.h
@@ -43,6 +43,7 @@ enum nodeid {
NODE_COPYRIGHT,
NODE_DATE,
NODE_EDITOR,
+ NODE_EMAIL,
NODE_EMPHASIS,
NODE_ENTRY,
NODE_ENVAR,
@@ -92,6 +93,7 @@ enum nodeid {
NODE_PARA,
NODE_PARAMDEF,
NODE_PARAMETER,
+ NODE_PERSONNAME,
NODE_PHRASE,
NODE_PREFACE,
NODE_PRIMARY,
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.64 -r1.65
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -117,6 +117,7 @@ static const struct node nodes[] = {
{ "copyright", NODE_COPYRIGHT },
{ "date", NODE_DATE },
{ "editor", NODE_EDITOR },
+ { "email", NODE_EMAIL },
{ "emphasis", NODE_EMPHASIS },
{ "entry", NODE_ENTRY },
{ "envar", NODE_ENVAR },
@@ -167,6 +168,7 @@ static const struct node nodes[] = {
{ "paramdef", NODE_PARAMDEF },
{ "parameter", NODE_PARAMETER },
{ "part", NODE_SECTION },
+ { "personname", NODE_PERSONNAME },
{ "phrase", NODE_PHRASE },
{ "preface", NODE_PREFACE },
{ "primary", NODE_PRIMARY },
@@ -1317,6 +1319,10 @@ pnode_print(struct parse *p, struct pnod
pnode_printmopen(p);
fputs("An", stdout);
break;
+ case NODE_EMAIL:
+ pnode_printmopen(p);
+ fputs("Aq Mt", stdout);
+ break;
case NODE_EMPHASIS:
case NODE_FIRSTTERM:
pnode_printmopen(p);
@@ -1600,6 +1606,7 @@ pnode_print(struct parse *p, struct pnod
case NODE_COMMAND:
case NODE_CONSTANT:
case NODE_EDITOR:
+ case NODE_EMAIL:
case NODE_EMPHASIS:
case NODE_ENVAR:
case NODE_FILENAME:
--
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-03-22 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 19:45 docbook2mdoc: support <personname> and <email>; based on a patch from 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).