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

Diff for /mandoc/man_term.c between version 1.204 and 1.206

version 1.204, 2017/06/08 12:54:58 version 1.206, 2017/06/17 01:27:05
Line 141  terminal_man(void *arg, const struct roff_man *man)
Line 141  terminal_man(void *arg, const struct roff_man *man)
         size_t                   save_defindent;          size_t                   save_defindent;
   
         p = (struct termp *)arg;          p = (struct termp *)arg;
           save_defindent = p->defindent;
           if (p->synopsisonly == 0 && p->defindent == 0)
                   p->defindent = 7;
         p->tcol->rmargin = p->maxrmargin = p->defrmargin;          p->tcol->rmargin = p->maxrmargin = p->defrmargin;
         term_tab_set(p, NULL);          term_tab_set(p, NULL);
         term_tab_set(p, "T");          term_tab_set(p, "T");
Line 167  terminal_man(void *arg, const struct roff_man *man)
Line 170  terminal_man(void *arg, const struct roff_man *man)
                         n = n->next;                          n = n->next;
                 }                  }
         } else {          } else {
                 save_defindent = p->defindent;  
                 if (p->defindent == 0)  
                         p->defindent = 7;  
                 term_begin(p, print_man_head, print_man_foot, &man->meta);                  term_begin(p, print_man_head, print_man_foot, &man->meta);
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
                 if (n != NULL)                  if (n != NULL)
                         print_man_nodelist(p, &mt, n, &man->meta);                          print_man_nodelist(p, &mt, n, &man->meta);
                 term_end(p);                  term_end(p);
                 p->defindent = save_defindent;  
         }          }
           p->defindent = save_defindent;
 }  }
   
 /*  /*
Line 377  pre_in(DECL_ARGS)
Line 377  pre_in(DECL_ARGS)
         if (a2roffsu(++cp, &su, SCALE_EN) == NULL)          if (a2roffsu(++cp, &su, SCALE_EN) == NULL)
                 return 0;                  return 0;
   
         v = (term_hspan(p, &su) + 11) / 24;          v = term_hen(p, &su);
   
         if (less < 0)          if (less < 0)
                 p->tcol->offset -= p->tcol->offset > v ? v : p->tcol->offset;                  p->tcol->offset -= p->tcol->offset > v ? v : p->tcol->offset;
Line 426  pre_HP(DECL_ARGS)
Line 426  pre_HP(DECL_ARGS)
   
         if ((nn = n->parent->head->child) != NULL &&          if ((nn = n->parent->head->child) != NULL &&
             a2roffsu(nn->string, &su, SCALE_EN) != NULL) {              a2roffsu(nn->string, &su, SCALE_EN) != NULL) {
                 len = term_hspan(p, &su) / 24;                  len = term_hen(p, &su);
                 if (len < 0 && (size_t)(-len) > mt->offset)                  if (len < 0 && (size_t)(-len) > mt->offset)
                         len = -mt->offset;                          len = -mt->offset;
                 else if (len > SHRT_MAX)                  else if (len > SHRT_MAX)
Line 511  pre_IP(DECL_ARGS)
Line 511  pre_IP(DECL_ARGS)
         if ((nn = n->parent->head->child) != NULL &&          if ((nn = n->parent->head->child) != NULL &&
             (nn = nn->next) != NULL &&              (nn = nn->next) != NULL &&
             a2roffsu(nn->string, &su, SCALE_EN) != NULL) {              a2roffsu(nn->string, &su, SCALE_EN) != NULL) {
                 len = term_hspan(p, &su) / 24;                  len = term_hen(p, &su);
                 if (len < 0 && (size_t)(-len) > mt->offset)                  if (len < 0 && (size_t)(-len) > mt->offset)
                         len = -mt->offset;                          len = -mt->offset;
                 else if (len > SHRT_MAX)                  else if (len > SHRT_MAX)
Line 593  pre_TP(DECL_ARGS)
Line 593  pre_TP(DECL_ARGS)
         if ((nn = n->parent->head->child) != NULL &&          if ((nn = n->parent->head->child) != NULL &&
             nn->string != NULL && ! (NODE_LINE & nn->flags) &&              nn->string != NULL && ! (NODE_LINE & nn->flags) &&
             a2roffsu(nn->string, &su, SCALE_EN) != NULL) {              a2roffsu(nn->string, &su, SCALE_EN) != NULL) {
                 len = term_hspan(p, &su) / 24;                  len = term_hen(p, &su);
                 if (len < 0 && (size_t)(-len) > mt->offset)                  if (len < 0 && (size_t)(-len) > mt->offset)
                         len = -mt->offset;                          len = -mt->offset;
                 else if (len > SHRT_MAX)                  else if (len > SHRT_MAX)
Line 797  pre_RS(DECL_ARGS)
Line 797  pre_RS(DECL_ARGS)
         if (n->child == NULL)          if (n->child == NULL)
                 n->aux = mt->lmargin[mt->lmargincur];                  n->aux = mt->lmargin[mt->lmargincur];
         else if (a2roffsu(n->child->string, &su, SCALE_EN) != NULL)          else if (a2roffsu(n->child->string, &su, SCALE_EN) != NULL)
                 n->aux = term_hspan(p, &su) / 24;                  n->aux = term_hen(p, &su);
         if (n->aux < 0 && (size_t)(-n->aux) > mt->offset)          if (n->aux < 0 && (size_t)(-n->aux) > mt->offset)
                 n->aux = -mt->offset;                  n->aux = -mt->offset;
         else if (n->aux > SHRT_MAX)          else if (n->aux > SHRT_MAX)

Legend:
Removed from v.1.204  
changed lines
  Added in v.1.206

CVSweb