[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.218

version 1.216, 2014/01/22 20:58:39 version 1.218, 2014/03/23 11:25:26
Line 23 
Line 23 
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdint.h>  
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
 #include "mandoc.h"  #include "mandoc.h"
   #include "mandoc_aux.h"
 #include "out.h"  #include "out.h"
 #include "term.h"  #include "term.h"
 #include "main.h"  #include "main.h"
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.218

CVSweb