=================================================================== RCS file: /cvs/docbook2mdoc/Attic/rules.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- docbook2mdoc/Attic/rules.c 2014/03/30 16:32:03 1.5 +++ docbook2mdoc/Attic/rules.c 2014/03/30 16:44:13 1.6 @@ -260,6 +260,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_FUNCSYNOPSISINFO): case (NODE_FUNCTION): case (NODE_LINK): + case (NODE_LITERAL): case (NODE_MANVOLNUM): case (NODE_OPTION): case (NODE_PARA): @@ -288,6 +289,26 @@ isparent(enum nodeid node, enum nodeid parent) break; } return(0); + case (NODE_LITERAL): + switch (parent) { + case (NODE_EMPHASIS): + case (NODE_FUNCSYNOPSISINFO): + case (NODE_LINK): + case (NODE_PARA): + case (NODE_PROGRAMLISTING): + case (NODE_REFDESCRIPTOR): + case (NODE_REFENTRYTITLE): + case (NODE_REFNAME): + case (NODE_REFPURPOSE): + case (NODE_SYNOPSIS): + case (NODE_TERM): + case (NODE_TITLE): + case (NODE_ULINK): + return(1); + default: + break; + } + return(0); case (NODE_MANVOLNUM): switch (parent) { case (NODE_CITEREFENTRY): @@ -406,6 +427,7 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_FUNCSYNOPSISINFO): case (NODE_FUNCTION): case (NODE_LINK): + case (NODE_LITERAL): case (NODE_MANVOLNUM): case (NODE_OPTION): case (NODE_PARA): @@ -424,6 +446,15 @@ isparent(enum nodeid node, enum nodeid parent) case (NODE_ULINK): default: return(1); + } + return(0); + case (NODE_SBR): + switch (parent) { + case (NODE_ARG): + case (NODE_CMDSYNOPSIS): + return(1); + default: + break; } return(0); case (NODE_STRUCTNAME):