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

Diff for /mandoc/term.c between version 1.260 and 1.261

version 1.260, 2017/05/07 17:31:45 version 1.261, 2017/06/01 19:05:37
Line 400  term_fontpop(struct termp *p)
Line 400  term_fontpop(struct termp *p)
 void  void
 term_word(struct termp *p, const char *word)  term_word(struct termp *p, const char *word)
 {  {
           struct roffsu    su;
         const char       nbrsp[2] = { ASCII_NBRSP, 0 };          const char       nbrsp[2] = { ASCII_NBRSP, 0 };
         const char      *seq, *cp;          const char      *seq, *cp;
         int              sz, uc;          int              sz, uc;
Line 487  term_word(struct termp *p, const char *word)
Line 488  term_word(struct termp *p, const char *word)
                                 p->flags &= ~TERMP_BACKAFTER;                                  p->flags &= ~TERMP_BACKAFTER;
                         else if (*word == '\0')                          else if (*word == '\0')
                                 p->flags |= (TERMP_NOSPACE | TERMP_NONEWLINE);                                  p->flags |= (TERMP_NOSPACE | TERMP_NONEWLINE);
                           continue;
                   case ESCAPE_HORIZ:
                           if (a2roffsu(seq, &su, SCALE_EM) == 0)
                                   continue;
                           uc = term_hspan(p, &su) / 24;
                           if (uc > 0)
                                   while (uc-- > 0)
                                           bufferc(p, ASCII_NBRSP);
                           else if (p->col > (size_t)(-uc))
                                   p->col += uc;
                           else {
                                   uc += p->col;
                                   p->col = 0;
                                   if (p->offset > (size_t)(-uc)) {
                                           p->ti += uc;
                                           p->offset += uc;
                                   } else {
                                           p->ti -= p->offset;
                                           p->offset = 0;
                                   }
                           }
                         continue;                          continue;
                 case ESCAPE_SKIPCHAR:                  case ESCAPE_SKIPCHAR:
                         p->flags |= TERMP_BACKAFTER;                          p->flags |= TERMP_BACKAFTER;

Legend:
Removed from v.1.260  
changed lines
  Added in v.1.261

CVSweb