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

Diff for /mandoc/tbl_term.c between version 1.13 and 1.15

version 1.13, 2011/01/07 14:59:52 version 1.15, 2011/01/08 17:16:48
Line 27 
Line 27 
 #include "out.h"  #include "out.h"
 #include "term.h"  #include "term.h"
   
 /* FIXME: `n' modifier doesn't always do the right thing. */  
 /* FIXME: `n' modifier doesn't use the cell-spacing buffer. */  
   
 static  size_t  term_tbl_len(size_t, void *);  static  size_t  term_tbl_len(size_t, void *);
 static  size_t  term_tbl_strlen(const char *, void *);  static  size_t  term_tbl_strlen(const char *, void *);
 static  void    tbl_char(struct termp *, char, size_t);  static  void    tbl_char(struct termp *, char, size_t);
Line 403  tbl_number(struct termp *tp, const struct tbl *tbl,
Line 400  tbl_number(struct termp *tp, const struct tbl *tbl,
   
         psz = term_strlen(tp, buf);          psz = term_strlen(tp, buf);
   
         if (NULL != (cp = strchr(str, tbl->decimal))) {          if (NULL != (cp = strrchr(str, tbl->decimal))) {
                 buf[1] = '\0';                  buf[1] = '\0';
                 for (ssz = 0, i = 0; cp != &str[i]; i++) {                  for (ssz = 0, i = 0; cp != &str[i]; i++) {
                         buf[0] = str[i];                          buf[0] = str[i];

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

CVSweb