[BACK]Return to parse.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / docbook2mdoc

Diff for /docbook2mdoc/parse.c between version 1.18 and 1.22

version 1.18, 2019/04/07 17:00:56 version 1.22, 2019/04/07 19:33:27
Line 66  static const struct element elements[] = {
Line 66  static const struct element elements[] = {
         { "acronym",            NODE_IGNORE },          { "acronym",            NODE_IGNORE },
         { "affiliation",        NODE_AFFILIATION },          { "affiliation",        NODE_AFFILIATION },
         { "anchor",             NODE_DELETE },          { "anchor",             NODE_DELETE },
           { "appendix",           NODE_APPENDIX },
         { "application",        NODE_APPLICATION },          { "application",        NODE_APPLICATION },
         { "arg",                NODE_ARG },          { "arg",                NODE_ARG },
           { "article",            NODE_SECTION },
         { "author",             NODE_AUTHOR },          { "author",             NODE_AUTHOR },
         { "authorgroup",        NODE_AUTHORGROUP },          { "authorgroup",        NODE_AUTHORGROUP },
         { "blockquote",         NODE_BLOCKQUOTE },          { "blockquote",         NODE_BLOCKQUOTE },
         { "book",               NODE_BOOK },          { "book",               NODE_SECTION },
         { "bookinfo",           NODE_BOOKINFO },          { "bookinfo",           NODE_BOOKINFO },
         { "caution",            NODE_CAUTION },          { "caution",            NODE_CAUTION },
         { "chapter",            NODE_SECTION },          { "chapter",            NODE_SECTION },
Line 101  static const struct element elements[] = {
Line 103  static const struct element elements[] = {
         { "funcsynopsis",       NODE_FUNCSYNOPSIS },          { "funcsynopsis",       NODE_FUNCSYNOPSIS },
         { "funcsynopsisinfo",   NODE_FUNCSYNOPSISINFO },          { "funcsynopsisinfo",   NODE_FUNCSYNOPSISINFO },
         { "function",           NODE_FUNCTION },          { "function",           NODE_FUNCTION },
           { "glossary",           NODE_VARIABLELIST },
           { "glossdef",           NODE_IGNORE },
           { "glossdiv",           NODE_IGNORE },
           { "glossentry",         NODE_VARLISTENTRY },
           { "glosslist",          NODE_VARIABLELIST },
         { "glossterm",          NODE_GLOSSTERM },          { "glossterm",          NODE_GLOSSTERM },
         { "group",              NODE_GROUP },          { "group",              NODE_GROUP },
         { "holder",             NODE_HOLDER },          { "holder",             NODE_HOLDER },
Line 463  xml_elem_start(struct parse *ps, const char *name)
Line 470  xml_elem_start(struct parse *ps, const char *name)
          */           */
   
         switch (dat->node = elem->node) {          switch (dat->node = elem->node) {
           case NODE_APPENDIX:
         case NODE_AUTHORGROUP:          case NODE_AUTHORGROUP:
           case NODE_BLOCKQUOTE:
         case NODE_BOOKINFO:          case NODE_BOOKINFO:
         case NODE_CAUTION:          case NODE_CAUTION:
         case NODE_EDITOR:          case NODE_EDITOR:
Line 518  xml_attrkey(struct parse *ps, const char *name)
Line 527  xml_attrkey(struct parse *ps, const char *name)
         struct pattr    *attr;          struct pattr    *attr;
         enum attrkey     key;          enum attrkey     key;
   
         if (ps->del > 0 || *name == '\0')          if (ps->del > 0 || ps->ncur == NODE_IGNORE || *name == '\0')
                 return;                  return;
         if ((key = attrkey_parse(name)) == ATTRKEY__MAX) {          if ((key = attrkey_parse(name)) == ATTRKEY__MAX) {
                 ps->attr = 0;                  ps->attr = 0;
Line 540  xml_attrval(struct parse *ps, const char *name)
Line 549  xml_attrval(struct parse *ps, const char *name)
 {  {
         struct pattr    *attr;          struct pattr    *attr;
   
         if (ps->del > 0 || ps->attr == 0)          if (ps->del > 0 || ps->ncur == NODE_IGNORE || ps->attr == 0)
                 return;                  return;
         if ((attr = TAILQ_LAST(&ps->cur->attrq, pattrq)) == NULL)          if ((attr = TAILQ_LAST(&ps->cur->attrq, pattrq)) == NULL)
                 return;                  return;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.22

CVSweb