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

Diff for /mandoc/mdoc.c between version 1.117 and 1.119

version 1.117, 2010/03/31 07:13:53 version 1.119, 2010/04/03 13:02:35
Line 436  node_alloc(struct mdoc *m, int line, int pos, 
Line 436  node_alloc(struct mdoc *m, int line, int pos, 
         p->line = line;          p->line = line;
         p->pos = pos;          p->pos = pos;
         p->tok = tok;          p->tok = tok;
           p->type = type;
   
         return(p);          return(p);
 }  }
Line 599  parsetext(struct mdoc *m, int line, char *buf)
Line 600  parsetext(struct mdoc *m, int line, char *buf)
         for (i = 0; ' ' == buf[i]; i++)          for (i = 0; ' ' == buf[i]; i++)
                 /* Skip leading whitespace. */ ;                  /* Skip leading whitespace. */ ;
   
         if ('\0' == buf[i])          if ('\0' == buf[i]) {
                 return(mdoc_perr(m, line, 0, ENOBLANK));                  if ( ! mdoc_pwarn(m, line, 0, ENOBLANK))
                           return(0);
                   /*
                    * Assume that a `Pp' should be inserted in the case of
                    * a blank line.  Technically, blank lines aren't
                    * allowed, but enough manuals assume this behaviour
                    * that we want to work around it.
                    */
                   if ( ! mdoc_elem_alloc(m, line, 0, MDOC_Pp, NULL))
                           return(0);
           }
   
         /*          /*
          * Break apart a free-form line into tokens.  Spaces are           * Break apart a free-form line into tokens.  Spaces are

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.119

CVSweb