[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.318 and 1.319

version 1.318, 2015/04/18 16:06:41 version 1.319, 2015/04/18 17:53:21
Line 253  static const struct termact termacts[MDOC_MAX] = {
Line 253  static const struct termact termacts[MDOC_MAX] = {
 void  void
 terminal_mdoc(void *arg, const struct roff_man *mdoc)  terminal_mdoc(void *arg, const struct roff_man *mdoc)
 {  {
         const struct roff_meta  *meta;  
         struct roff_node        *n;          struct roff_node        *n;
         struct termp            *p;          struct termp            *p;
   
         p = (struct termp *)arg;          p = (struct termp *)arg;
   
         p->overstep = 0;          p->overstep = 0;
         p->rmargin = p->maxrmargin = p->defrmargin;          p->rmargin = p->maxrmargin = p->defrmargin;
         p->tabwidth = term_len(p, 5);          p->tabwidth = term_len(p, 5);
   
         n = mdoc_node(mdoc)->child;          n = mdoc->first->child;
         meta = mdoc_meta(mdoc);  
   
         if (p->synopsisonly) {          if (p->synopsisonly) {
                 while (n != NULL) {                  while (n != NULL) {
                         if (n->tok == MDOC_Sh && n->sec == SEC_SYNOPSIS) {                          if (n->tok == MDOC_Sh && n->sec == SEC_SYNOPSIS) {
                                 if (n->child->next->child != NULL)                                  if (n->child->next->child != NULL)
                                         print_mdoc_nodelist(p, NULL,                                          print_mdoc_nodelist(p, NULL,
                                             meta, n->child->next->child);                                              &mdoc->meta,
                                               n->child->next->child);
                                 term_newln(p);                                  term_newln(p);
                                 break;                                  break;
                         }                          }
Line 280  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 277  terminal_mdoc(void *arg, const struct roff_man *mdoc)
         } else {          } else {
                 if (p->defindent == 0)                  if (p->defindent == 0)
                         p->defindent = 5;                          p->defindent = 5;
                 term_begin(p, print_mdoc_head, print_mdoc_foot, meta);                  term_begin(p, print_mdoc_head, print_mdoc_foot,
                       &mdoc->meta);
                 if (n != NULL) {                  if (n != NULL) {
                         if (n->tok != MDOC_Sh)                          if (n->tok != MDOC_Sh)
                                 term_vspace(p);                                  term_vspace(p);
                         print_mdoc_nodelist(p, NULL, meta, n);                          print_mdoc_nodelist(p, NULL, &mdoc->meta, n);
                 }                  }
                 term_end(p);                  term_end(p);
         }          }

Legend:
Removed from v.1.318  
changed lines
  Added in v.1.319

CVSweb