[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.379 and 1.380

version 1.379, 2020/03/13 15:32:28 version 1.380, 2020/04/06 10:16:17
Line 335  print_mdoc_node(DECL_ARGS)
Line 335  print_mdoc_node(DECL_ARGS)
         memset(&npair, 0, sizeof(struct termpair));          memset(&npair, 0, sizeof(struct termpair));
         npair.ppair = pair;          npair.ppair = pair;
   
         if (n->flags & NODE_ID)          if (n->flags & NODE_ID && n->tok != MDOC_Pp &&
               (n->tok != MDOC_It || n->type != ROFFT_BLOCK))
                 term_tag_write(n, p->line);                  term_tag_write(n, p->line);
   
         /*          /*
Line 630  termp_it_pre(DECL_ARGS)
Line 631  termp_it_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 print_bvspace(p, n->parent->parent, n);                  print_bvspace(p, n->parent->parent, n);
                   if (n->flags & NODE_ID)
                           term_tag_write(n, p->line);
                 return 1;                  return 1;
         }          }
   
Line 1110  termp_ex_pre(DECL_ARGS)
Line 1113  termp_ex_pre(DECL_ARGS)
 static int  static int
 termp_nd_pre(DECL_ARGS)  termp_nd_pre(DECL_ARGS)
 {  {
   
         if (n->type == ROFFT_BODY)          if (n->type == ROFFT_BODY)
                 term_word(p, "\\(en");                  term_word(p, "\\(en");
         return 1;          return 1;
Line 1119  termp_nd_pre(DECL_ARGS)
Line 1121  termp_nd_pre(DECL_ARGS)
 static int  static int
 termp_bl_pre(DECL_ARGS)  termp_bl_pre(DECL_ARGS)
 {  {
           switch (n->type) {
         return n->type != ROFFT_HEAD;          case ROFFT_BLOCK:
                   term_newln(p);
                   return 1;
           case ROFFT_HEAD:
                   return 0;
           default:
                   return 1;
           }
 }  }
   
 static void  static void
 termp_bl_post(DECL_ARGS)  termp_bl_post(DECL_ARGS)
 {  {
   
         if (n->type != ROFFT_BLOCK)          if (n->type != ROFFT_BLOCK)
                 return;                  return;
         term_newln(p);          term_newln(p);
Line 1140  termp_bl_post(DECL_ARGS)
Line 1148  termp_bl_post(DECL_ARGS)
 static int  static int
 termp_xr_pre(DECL_ARGS)  termp_xr_pre(DECL_ARGS)
 {  {
   
         if (NULL == (n = n->child))          if (NULL == (n = n->child))
                 return 0;                  return 0;
   
Line 1555  static int
Line 1562  static int
 termp_pp_pre(DECL_ARGS)  termp_pp_pre(DECL_ARGS)
 {  {
         term_vspace(p);          term_vspace(p);
           if (n->flags & NODE_ID)
                   term_tag_write(n, p->line);
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.379  
changed lines
  Added in v.1.380

CVSweb