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

Diff for /mandoc/mdoc.c between version 1.164 and 1.165

version 1.164, 2010/08/29 11:29:51 version 1.165, 2010/09/27 23:03:44
Line 691  mdoc_ptext(struct mdoc *m, int line, char *buf, int of
Line 691  mdoc_ptext(struct mdoc *m, int line, char *buf, int of
                         return(0);                          return(0);
   
                 /*                  /*
                  * Insert a `Pp' in the case of a blank line.  Technically,                   * Insert a `sp' in the case of a blank line.  Technically,
                  * blank lines aren't allowed, but enough manuals assume this                   * blank lines aren't allowed, but enough manuals assume this
                  * behaviour that we want to work around it.                   * behaviour that we want to work around it.
                  */                   */
                 if ( ! mdoc_elem_alloc(m, line, offs, MDOC_Pp, NULL))                  if ( ! mdoc_elem_alloc(m, line, offs, MDOC_sp, NULL))
                         return(0);                          return(0);
   
                 m->next = MDOC_NEXT_SIBLING;                  m->next = MDOC_NEXT_SIBLING;
Line 758  mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off
Line 758  mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off
   
         /*          /*
          * Copy the first word into a nil-terminated buffer.           * Copy the first word into a nil-terminated buffer.
          * Stop copying when a tab, space, backslash, or eoln is encountered.           * Stop copying when a tab, space, or eoln is encountered.
          */           */
   
         j = 0;          j = 0;
         while (j < 4 && '\0' != buf[i] &&          while (j < 4 && '\0' != buf[i] && ' ' != buf[i] && '\t' != buf[i])
                         ' ' != buf[i] &&  
                         '\t' != buf[i] &&  
                         '\\' != buf[i])  
                 mac[j++] = buf[i++];                  mac[j++] = buf[i++];
         mac[j] = '\0';          mac[j] = '\0';
   

Legend:
Removed from v.1.164  
changed lines
  Added in v.1.165

CVSweb