[BACK]Return to tbl_term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/tbl_term.c between version 1.22 and 1.23

version 1.22, 2015/01/28 04:18:31 version 1.23, 2015/01/30 02:08:37
Line 260 
Line 260 
         const struct roffcol *col)          const struct roffcol *col)
 {  {
   
         if (NULL == dp) {          if (dp == NULL) {
                 tbl_char(tp, ASCII_NBRSP, col->width);                  tbl_char(tp, ASCII_NBRSP, col->width);
                 return;                  return;
         }          }
         assert(dp->layout);  
   
         switch (dp->pos) {          switch (dp->pos) {
         case TBL_DATA_NONE:          case TBL_DATA_NONE:
Line 394 
Line 393 
   
         psz = term_strlen(tp, buf);          psz = term_strlen(tp, buf);
   
         if (NULL != (cp = strrchr(dp->string, opts->decimal))) {          if ((cp = strrchr(dp->string, opts->decimal)) != NULL) {
                 buf[1] = '\0';  
                 for (ssz = 0, i = 0; cp != &dp->string[i]; i++) {                  for (ssz = 0, i = 0; cp != &dp->string[i]; i++) {
                         buf[0] = dp->string[i];                          buf[0] = dp->string[i];
                         ssz += term_strlen(tp, buf);                          ssz += term_strlen(tp, buf);

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23