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

Diff for /mandoc/mdoc_man.c between version 1.121 and 1.125

version 1.121, 2017/06/14 13:00:31 version 1.125, 2018/04/05 22:05:08
Line 130  static const void_fp roff_manacts[ROFF_MAX] = {
Line 130  static const void_fp roff_manacts[ROFF_MAX] = {
         pre_ft,         /* ft */          pre_ft,         /* ft */
         pre_onearg,     /* ll */          pre_onearg,     /* ll */
         pre_onearg,     /* mc */          pre_onearg,     /* mc */
           pre_onearg,     /* po */
         pre_onearg,     /* rj */          pre_onearg,     /* rj */
         pre_sp,         /* sp */          pre_sp,         /* sp */
         pre_ta,         /* ta */          pre_ta,         /* ta */
Line 201  static const struct manact __manacts[MDOC_MAX - MDOC_D
Line 202  static const struct manact __manacts[MDOC_MAX - MDOC_D
         { NULL, pre_bk, post_bk, NULL, NULL }, /* Bx */          { NULL, pre_bk, post_bk, NULL, NULL }, /* Bx */
         { NULL, pre_skip, NULL, NULL, NULL }, /* Db */          { NULL, pre_skip, NULL, NULL, NULL }, /* Db */
         { NULL, NULL, NULL, NULL, NULL }, /* Dc */          { NULL, NULL, NULL, NULL, NULL }, /* Dc */
         { cond_body, pre_enc, post_enc, "\\(Lq", "\\(Rq" }, /* Do */          { cond_body, pre_enc, post_enc, "\\(lq", "\\(rq" }, /* Do */
         { cond_body, pre_enc, post_enc, "\\(Lq", "\\(Rq" }, /* Dq */          { cond_body, pre_enc, post_enc, "\\(lq", "\\(rq" }, /* Dq */
         { NULL, NULL, NULL, NULL, NULL }, /* Ec */          { NULL, NULL, NULL, NULL, NULL }, /* Ec */
         { NULL, NULL, NULL, NULL, NULL }, /* Ef */          { NULL, NULL, NULL, NULL, NULL }, /* Ef */
         { NULL, pre_em, post_font, NULL, NULL }, /* Em */          { NULL, pre_em, post_font, NULL, NULL }, /* Em */
Line 1407  pre_it(DECL_ARGS)
Line 1408  pre_it(DECL_ARGS)
                         if (bln->norm->Bl.type == LIST_diag)                          if (bln->norm->Bl.type == LIST_diag)
                                 print_line(".B \"", 0);                                  print_line(".B \"", 0);
                         else                          else
                                 print_line(".R \"", 0);                                  print_line(".BR \\& \"", 0);
                         outflags &= ~MMAN_spc;                          outflags &= ~MMAN_spc;
                         return 1;                          return 1;
                 case LIST_bullet:                  case LIST_bullet:
Line 1546  static int
Line 1547  static int
 pre_lk(DECL_ARGS)  pre_lk(DECL_ARGS)
 {  {
         const struct roff_node *link, *descr, *punct;          const struct roff_node *link, *descr, *punct;
         int display;  
   
         if ((link = n->child) == NULL)          if ((link = n->child) == NULL)
                 return 0;                  return 0;
Line 1569  pre_lk(DECL_ARGS)
Line 1569  pre_lk(DECL_ARGS)
         }          }
   
         /* Link target. */          /* Link target. */
         display = man_strlen(link->string) >= 26;  
         if (display) {  
                 print_line(".RS", MMAN_Bk_susp);  
                 print_word("6n");  
                 outflags |= MMAN_nl;  
         }  
         font_push('B');          font_push('B');
         print_word(link->string);          print_word(link->string);
         font_pop();          font_pop();
Line 1584  pre_lk(DECL_ARGS)
Line 1578  pre_lk(DECL_ARGS)
                 print_word(punct->string);                  print_word(punct->string);
                 punct = punct->next;                  punct = punct->next;
         }          }
         if (display)  
                 print_line(".RE", MMAN_nl);  
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.125

CVSweb