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

Diff for /mandoc/man_html.c between version 1.136 and 1.142

version 1.136, 2017/04/24 23:06:18 version 1.142, 2017/05/09 14:10:01
Line 65  static int    man_SM_pre(MAN_ARGS);
Line 65  static int    man_SM_pre(MAN_ARGS);
 static  int               man_SS_pre(MAN_ARGS);  static  int               man_SS_pre(MAN_ARGS);
 static  int               man_UR_pre(MAN_ARGS);  static  int               man_UR_pre(MAN_ARGS);
 static  int               man_alt_pre(MAN_ARGS);  static  int               man_alt_pre(MAN_ARGS);
 static  int               man_br_pre(MAN_ARGS);  
 static  int               man_ign_pre(MAN_ARGS);  static  int               man_ign_pre(MAN_ARGS);
 static  int               man_in_pre(MAN_ARGS);  static  int               man_in_pre(MAN_ARGS);
 static  void              man_root_post(MAN_ARGS);  static  void              man_root_post(MAN_ARGS);
Line 92  static const struct htmlman __mans[MAN_MAX - MAN_TH] =
Line 91  static const struct htmlman __mans[MAN_MAX - MAN_TH] =
         { man_I_pre, NULL }, /* I */          { man_I_pre, NULL }, /* I */
         { man_alt_pre, NULL }, /* IR */          { man_alt_pre, NULL }, /* IR */
         { man_alt_pre, NULL }, /* RI */          { man_alt_pre, NULL }, /* RI */
         { man_br_pre, NULL }, /* br */  
         { man_br_pre, NULL }, /* sp */  
         { NULL, NULL }, /* nf */          { NULL, NULL }, /* nf */
         { NULL, NULL }, /* fi */          { NULL, NULL }, /* fi */
         { NULL, NULL }, /* RE */          { NULL, NULL }, /* RE */
Line 103  static const struct htmlman __mans[MAN_MAX - MAN_TH] =
Line 100  static const struct htmlman __mans[MAN_MAX - MAN_TH] =
         { man_ign_pre, NULL }, /* PD */          { man_ign_pre, NULL }, /* PD */
         { man_ign_pre, NULL }, /* AT */          { man_ign_pre, NULL }, /* AT */
         { man_in_pre, NULL }, /* in */          { man_in_pre, NULL }, /* in */
         { man_ign_pre, NULL }, /* ft */  
         { man_OP_pre, NULL }, /* OP */          { man_OP_pre, NULL }, /* OP */
         { NULL, NULL }, /* EX */          { NULL, NULL }, /* EX */
         { NULL, NULL }, /* EE */          { NULL, NULL }, /* EE */
         { man_UR_pre, NULL }, /* UR */          { man_UR_pre, NULL }, /* UR */
         { NULL, NULL }, /* UE */          { NULL, NULL }, /* UE */
         { man_ign_pre, NULL }, /* ll */  
 };  };
 static  const struct htmlman *const mans = __mans - MAN_TH;  static  const struct htmlman *const mans = __mans - MAN_TH;
   
Line 256  print_man_node(MAN_ARGS)
Line 251  print_man_node(MAN_ARGS)
         case ROFFT_TEXT:          case ROFFT_TEXT:
                 if (fillmode(h, want_fillmode) == MAN_fi &&                  if (fillmode(h, want_fillmode) == MAN_fi &&
                     want_fillmode == MAN_fi &&                      want_fillmode == MAN_fi &&
                     n->flags & NODE_LINE && *n->string == ' ')                      n->flags & NODE_LINE && *n->string == ' ' &&
                       (h->flags & HTML_NONEWLINE) == 0)
                         print_otag(h, TAG_BR, "");                          print_otag(h, TAG_BR, "");
                 if (*n->string != '\0')                  if (*n->string != '\0')
                         break;                          break;
Line 305  print_man_node(MAN_ARGS)
Line 301  print_man_node(MAN_ARGS)
                         print_tblclose(h);                          print_tblclose(h);
   
                 t = h->tag;                  t = h->tag;
                   if (n->tok < ROFF_MAX) {
                           roff_html_pre(h, n);
                           child = 0;
                           break;
                   }
   
                   assert(n->tok >= MAN_TH && n->tok < MAN_MAX);
                 if (mans[n->tok].pre)                  if (mans[n->tok].pre)
                         child = (*mans[n->tok].pre)(man, n, h);                          child = (*mans[n->tok].pre)(man, n, h);
   
Line 408  man_root_post(MAN_ARGS)
Line 411  man_root_post(MAN_ARGS)
         if (man->os)          if (man->os)
                 print_text(h, man->os);                  print_text(h, man->os);
         print_tagq(h, t);          print_tagq(h, t);
 }  
   
   
 static int  
 man_br_pre(MAN_ARGS)  
 {  
         struct roffsu    su;  
   
         SCALE_VS_INIT(&su, 1);  
   
         if (MAN_sp == n->tok) {  
                 if (NULL != (n = n->child))  
                         if ( ! a2roffsu(n->string, &su, SCALE_VS))  
                                 su.scale = 1.0;  
         } else  
                 su.scale = 0.0;  
   
         print_otag(h, TAG_DIV, "suh", &su);  
   
         /* So the div isn't empty: */  
         print_text(h, "\\~");  
   
         return 0;  
 }  }
   
 static int  static int

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.142

CVSweb