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

Diff for /mandoc/term.c between version 1.242 and 1.243

version 1.242, 2014/12/24 23:32:42 version 1.243, 2015/01/21 20:33:25
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 495  term_word(struct termp *p, const char *word)
Line 495  term_word(struct termp *p, const char *word)
                 case ESCAPE_SKIPCHAR:                  case ESCAPE_SKIPCHAR:
                         p->flags |= TERMP_SKIPCHAR;                          p->flags |= TERMP_SKIPCHAR;
                         continue;                          continue;
                   case ESCAPE_OVERSTRIKE:
                           cp = seq + sz;
                           while (seq < cp) {
                                   if (*seq == '\\') {
                                           mandoc_escape(&seq, NULL, NULL);
                                           continue;
                                   }
                                   encode1(p, *seq++);
                                   if (seq < cp)
                                           encode(p, "\b", 1);
                           }
                 default:                  default:
                         continue;                          continue;
                 }                  }
Line 715  term_strlen(const struct termp *p, const char *cp)
Line 726  term_strlen(const struct termp *p, const char *cp)
                                 continue;                                  continue;
                         case ESCAPE_SKIPCHAR:                          case ESCAPE_SKIPCHAR:
                                 skip = 1;                                  skip = 1;
                                   continue;
                           case ESCAPE_OVERSTRIKE:
                                   rsz = 0;
                                   rhs = seq + ssz;
                                   while (seq < rhs) {
                                           if (*seq == '\\') {
                                                   mandoc_escape(&seq, NULL, NULL);
                                                   continue;
                                           }
                                           i = (*p->width)(p, *seq++);
                                           if (rsz < i)
                                                   rsz = i;
                                   }
                                   sz += rsz;
                                 continue;                                  continue;
                         default:                          default:
                                 continue;                                  continue;

Legend:
Removed from v.1.242  
changed lines
  Added in v.1.243

CVSweb