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

Diff for /mandoc/term.c between version 1.216 and 1.217

version 1.216, 2014/01/22 20:58:39 version 1.217, 2014/03/13 19:23:50
Line 183  term_flushln(struct termp *p)
Line 183  term_flushln(struct termp *p)
                              ASCII_BREAK == p->buf[j]))                               ASCII_BREAK == p->buf[j]))
                                 jhy = j;                                  jhy = j;
   
                           /*
                            * Hyphenation now decided, put back a real
                            * hyphen such that we get the correct width.
                            */
                           if (ASCII_HYPH == p->buf[j])
                                   p->buf[j] = '-';
   
                         vend += (*p->width)(p, p->buf[j]);                          vend += (*p->width)(p, p->buf[j]);
                 }                  }
   
Line 246  term_flushln(struct termp *p)
Line 253  term_flushln(struct termp *p)
                                 (*p->advance)(p, vbl);                                  (*p->advance)(p, vbl);
                                 p->viscol += vbl;                                  p->viscol += vbl;
                                 vbl = 0;                                  vbl = 0;
                         }  
   
                         if (ASCII_HYPH == p->buf[i]) {  
                                 (*p->letter)(p, '-');  
                                 p->viscol += (*p->width)(p, '-');  
                                 continue;  
                         }                          }
   
                         (*p->letter)(p, p->buf[i]);                          (*p->letter)(p, p->buf[i]);

Legend:
Removed from v.1.216  
changed lines
  Added in v.1.217

CVSweb