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

Diff for /mandoc/mdoc_term.c between version 1.382 and 1.383

version 1.382, 2022/09/11 09:13:48 version 1.383, 2023/11/13 19:13:01
Line 250  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
Line 250  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
 {  {
         struct roff_node        *n, *nn;          struct roff_node        *n, *nn;
         struct termp            *p;          struct termp            *p;
         size_t                   save_defindent;  
   
         p = (struct termp *)arg;          p = (struct termp *)arg;
         p->tcol->rmargin = p->maxrmargin = p->defrmargin;          p->tcol->rmargin = p->maxrmargin = p->defrmargin;
Line 275  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
Line 274  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
                         print_mdoc_nodelist(p, NULL, mdoc, n);                          print_mdoc_nodelist(p, NULL, mdoc, n);
                 term_newln(p);                  term_newln(p);
         } else {          } else {
                 save_defindent = p->defindent;  
                 if (p->defindent == 0)  
                         p->defindent = 5;  
                 term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc);                  term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc);
                 while (n != NULL &&                  while (n != NULL &&
                     (n->type == ROFFT_COMMENT ||                      (n->type == ROFFT_COMMENT ||
Line 289  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
Line 285  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
                         print_mdoc_nodelist(p, NULL, mdoc, n);                          print_mdoc_nodelist(p, NULL, mdoc, n);
                 }                  }
                 term_end(p);                  term_end(p);
                 p->defindent = save_defindent;  
         }          }
 }  }
   

Legend:
Removed from v.1.382  
changed lines
  Added in v.1.383

CVSweb