[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.19

version 1.18, 2019/04/07 17:00:56 version 1.19, 2019/04/07 17:39:26
Line 518  xml_attrkey(struct parse *ps, const char *name)
Line 518  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 540  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.19

CVSweb