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

Diff for /mandoc/roff.c between version 1.375 and 1.377

version 1.375, 2020/08/03 11:02:57 version 1.377, 2021/06/27 17:57:55
Line 1823  roff_parsetext(struct roff *r, struct buf *buf, int po
Line 1823  roff_parsetext(struct roff *r, struct buf *buf, int po
 }  }
   
 int  int
 roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs)  roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs, size_t len)
 {  {
         enum roff_tok    t;          enum roff_tok    t;
         int              e;          int              e;
Line 1834  roff_parseln(struct roff *r, int ln, struct buf *buf, 
Line 1834  roff_parseln(struct roff *r, int ln, struct buf *buf, 
   
         ppos = pos = *offs;          ppos = pos = *offs;
   
           if (len > 80 && r->tbl == NULL && r->eqn == NULL &&
               (r->man->flags & ROFF_NOFILL) == 0 &&
               strchr(" .\\", buf->buf[pos]) == NULL &&
               buf->buf[pos] != r->control &&
               strcspn(buf->buf, " ") < 80)
                   mandoc_msg(MANDOCERR_TEXT_LONG, ln, (int)len - 1,
                       "%.20s...", buf->buf + pos);
   
         /* Handle in-line equation delimiters. */          /* Handle in-line equation delimiters. */
   
         if (r->tbl == NULL &&          if (r->tbl == NULL &&
Line 2362  roff_cond_checkend(ROFF_ARGS)
Line 2370  roff_cond_checkend(ROFF_ARGS)
         while ((ep = strchr(ep, '\\')) != NULL) {          while ((ep = strchr(ep, '\\')) != NULL) {
                 switch (ep[1]) {                  switch (ep[1]) {
                 case '}':                  case '}':
                         if (rr)                          if (ep[2] == '\0')
                                   ep[0] = '\0';
                           else if (rr)
                                 ep[1] = '&';                                  ep[1] = '&';
                         else                          else
                                 memmove(ep, ep + 2, strlen(ep + 2) + 1);                                  memmove(ep, ep + 2, strlen(ep + 2) + 1);

Legend:
Removed from v.1.375  
changed lines
  Added in v.1.377

CVSweb