[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.370 and 1.371

version 1.370, 2018/12/13 11:55:47 version 1.371, 2018/12/30 00:49:55
Line 251  static int  fn_prio;
Line 251  static int  fn_prio;
   
   
 void  void
 terminal_mdoc(void *arg, const struct roff_man *mdoc)  terminal_mdoc(void *arg, const struct roff_meta *mdoc)
 {  {
         struct roff_node        *n;          struct roff_node        *n;
         struct termp            *p;          struct termp            *p;
Line 269  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 269  terminal_mdoc(void *arg, const struct roff_man *mdoc)
                         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,
                                             &mdoc->meta,                                              mdoc, n->child->next->child);
                                             n->child->next->child);  
                                 term_newln(p);                                  term_newln(p);
                                 break;                                  break;
                         }                          }
Line 280  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 279  terminal_mdoc(void *arg, const struct roff_man *mdoc)
                 save_defindent = p->defindent;                  save_defindent = p->defindent;
                 if (p->defindent == 0)                  if (p->defindent == 0)
                         p->defindent = 5;                          p->defindent = 5;
                 term_begin(p, print_mdoc_head, print_mdoc_foot,                  term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc);
                     &mdoc->meta);  
                 while (n != NULL &&                  while (n != NULL &&
                     (n->type == ROFFT_COMMENT ||                      (n->type == ROFFT_COMMENT ||
                      n->flags & NODE_NOPRT))                       n->flags & NODE_NOPRT))
Line 289  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 287  terminal_mdoc(void *arg, const struct roff_man *mdoc)
                 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, &mdoc->meta, n);                          print_mdoc_nodelist(p, NULL, mdoc, n);
                 }                  }
                 term_end(p);                  term_end(p);
                 p->defindent = save_defindent;                  p->defindent = save_defindent;

Legend:
Removed from v.1.370  
changed lines
  Added in v.1.371

CVSweb