[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.89 and 1.92

version 1.89, 2010/12/06 15:31:19 version 1.92, 2011/01/02 12:21:07
Line 126  static const struct termact termacts[MAN_MAX] = {
Line 126  static const struct termact termacts[MAN_MAX] = {
         { pre_alternate, NULL, 0 }, /* IR */          { pre_alternate, NULL, 0 }, /* IR */
         { pre_alternate, NULL, 0 }, /* RI */          { pre_alternate, NULL, 0 }, /* RI */
         { NULL, NULL, MAN_NOTEXT }, /* na */          { NULL, NULL, MAN_NOTEXT }, /* na */
         { pre_I, NULL, 0 }, /* i */  
         { pre_sp, NULL, MAN_NOTEXT }, /* sp */          { pre_sp, NULL, MAN_NOTEXT }, /* sp */
         { pre_literal, NULL, 0 }, /* nf */          { pre_literal, NULL, 0 }, /* nf */
         { pre_literal, NULL, 0 }, /* fi */          { pre_literal, NULL, 0 }, /* fi */
         { NULL, NULL, 0 }, /* r */  
         { NULL, NULL, 0 }, /* RE */          { NULL, NULL, 0 }, /* RE */
         { pre_RS, post_RS, 0 }, /* RS */          { pre_RS, post_RS, 0 }, /* RS */
         { pre_ign, NULL, 0 }, /* DT */          { pre_ign, NULL, 0 }, /* DT */
Line 867  print_man_node(DECL_ARGS)
Line 865  print_man_node(DECL_ARGS)
                         p->maxrmargin = rmax;                          p->maxrmargin = rmax;
                 }                  }
                 break;                  break;
           case (MAN_TBL):
                   term_tbl(p, n->span);
                   break;
         default:          default:
                 if ( ! (MAN_NOTEXT & termacts[n->tok].flags))                  if ( ! (MAN_NOTEXT & termacts[n->tok].flags))
                         term_fontrepl(p, TERMFONT_NONE);                          term_fontrepl(p, TERMFONT_NONE);
Line 878  print_man_node(DECL_ARGS)
Line 879  print_man_node(DECL_ARGS)
         if (c && n->child)          if (c && n->child)
                 print_man_nodelist(p, mt, n->child, m);                  print_man_nodelist(p, mt, n->child, m);
   
         if (MAN_TEXT != n->type) {          switch (n->type) {
           case (MAN_TEXT):
                   /* FALLTHROUGH */
           case (MAN_TBL):
                   break;
           default:
                 if (termacts[n->tok].post)                  if (termacts[n->tok].post)
                         (*termacts[n->tok].post)(p, mt, n, m);                          (*termacts[n->tok].post)(p, mt, n, m);
                 if ( ! (MAN_NOTEXT & termacts[n->tok].flags))                  if ( ! (MAN_NOTEXT & termacts[n->tok].flags))
                         term_fontrepl(p, TERMFONT_NONE);                          term_fontrepl(p, TERMFONT_NONE);
                   break;
         }          }
   
         if (MAN_EOS & n->flags)          if (MAN_EOS & n->flags)

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.92

CVSweb