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

Diff for /mandoc/mdoc.c between version 1.141 and 1.142

version 1.141, 2010/05/31 10:28:04 version 1.142, 2010/05/31 15:42:09
Line 542  mdoc_node_delete(struct mdoc *m, struct mdoc_node *p)
Line 542  mdoc_node_delete(struct mdoc *m, struct mdoc_node *p)
 static int  static int
 mdoc_ptext(struct mdoc *m, int line, char *buf, int offs)  mdoc_ptext(struct mdoc *m, int line, char *buf, int offs)
 {  {
         char            *c, *ws, *end;          char             *c, *ws, *end;
           struct mdoc_node *n;
   
         /* Ignore bogus comments. */          /* Ignore bogus comments. */
   
Line 555  mdoc_ptext(struct mdoc *m, int line, char *buf, int of
Line 556  mdoc_ptext(struct mdoc *m, int line, char *buf, int of
   
         if (SEC_NONE == m->lastnamed)          if (SEC_NONE == m->lastnamed)
                 return(mdoc_pmsg(m, line, offs, MANDOCERR_NOTEXT));                  return(mdoc_pmsg(m, line, offs, MANDOCERR_NOTEXT));
   
           assert(m->last);
           n = m->last;
   
           /*
            * Diver directly into list processing if we're encountering a
            * columnar MDOC_BLOCK with or without a prior MDOC_BLOCK entry
            * (if it's a MDOC_BODY that means it's open, in which case we
            * should process within its context).
            */
   
           if (MDOC_Bl == n->tok && LIST_column == n->data.list) {
                   m->flags |= MDOC_FREECOL;
                   return(mdoc_macro(m, MDOC_It, line, offs, &offs, buf));
           }
   
           if (MDOC_It == n->tok && MDOC_BLOCK == n->type &&
                           NULL != n->parent &&
                           MDOC_Bl == n->parent->tok &&
                           LIST_column == n->parent->data.list) {
                   m->flags |= MDOC_FREECOL;
                   return(mdoc_macro(m, MDOC_It, line, offs, &offs, buf));
           }
   
         /*          /*
          * Search for the beginning of unescaped trailing whitespace (ws)           * Search for the beginning of unescaped trailing whitespace (ws)

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

CVSweb