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

Diff for /mandoc/roff.c between version 1.289 and 1.291

version 1.289, 2017/02/17 03:03:03 version 1.291, 2017/03/03 13:55:32
Line 1236  deroff(char **dest, const struct roff_node *n)
Line 1236  deroff(char **dest, const struct roff_node *n)
         /* Skip trailing backslash. */          /* Skip trailing backslash. */
   
         sz = strlen(cp);          sz = strlen(cp);
         if (cp[sz - 1] == '\\')          if (sz > 0 && cp[sz - 1] == '\\')
                 sz--;                  sz--;
   
         /* Skip trailing whitespace. */          /* Skip trailing whitespace. */
Line 1608  roff_parseln(struct roff *r, int ln, struct buf *buf, 
Line 1608  roff_parseln(struct roff *r, int ln, struct buf *buf, 
                         return ROFF_IGN;                          return ROFF_IGN;
                 while (buf->buf[pos] != '\0' && buf->buf[pos] != ' ')                  while (buf->buf[pos] != '\0' && buf->buf[pos] != ' ')
                         pos++;                          pos++;
                 while (buf->buf[pos] != '\0' && buf->buf[pos] == ' ')                  while (buf->buf[pos] == ' ')
                         pos++;                          pos++;
                 return tbl_read(r->tbl, ln, buf->buf, pos);                  return tbl_read(r->tbl, ln, buf->buf, pos);
         }          }

Legend:
Removed from v.1.289  
changed lines
  Added in v.1.291

CVSweb