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

Diff for /mandoc/mdoc_html.c between version 1.168 and 1.174

version 1.168, 2011/05/17 11:34:31 version 1.174, 2011/07/23 22:57:13
Line 407  print_mdoc_node(MDOC_ARGS)
Line 407  print_mdoc_node(MDOC_ARGS)
 {  {
         int              child;          int              child;
         struct tag      *t;          struct tag      *t;
         struct htmlpair  tag;  
   
         child = 1;          child = 1;
         t = h->tags.head;          t = h->tags.head;
Line 434  print_mdoc_node(MDOC_ARGS)
Line 433  print_mdoc_node(MDOC_ARGS)
                         h->flags |= HTML_NOSPACE;                          h->flags |= HTML_NOSPACE;
                 return;                  return;
         case (MDOC_EQN):          case (MDOC_EQN):
                 PAIR_CLASS_INIT(&tag, "eqn");                  print_eqn(h, n->eqn);
                 print_otag(h, TAG_SPAN, 1, &tag);  
                 print_text(h, n->eqn->data);  
                 break;                  break;
         case (MDOC_TBL):          case (MDOC_TBL):
                 /*                  /*
Line 610  mdoc_sh_pre(MDOC_ARGS)
Line 607  mdoc_sh_pre(MDOC_ARGS)
                 return(1);                  return(1);
   
         bufinit(h);          bufinit(h);
           bufcat(h, "x");
         for (n = n->child; n; n = n->next) {          for (n = n->child; n; n = n->next) {
                 bufcat_id(h, n->string);                  bufcat_id(h, n->string);
                 if (n->next)                  if (n->next)
Line 636  mdoc_ss_pre(MDOC_ARGS)
Line 634  mdoc_ss_pre(MDOC_ARGS)
                 return(1);                  return(1);
   
         bufinit(h);          bufinit(h);
           bufcat(h, "x");
         for (n = n->child; n; n = n->next) {          for (n = n->child; n; n = n->next) {
                 bufcat_id(h, n->string);                  bufcat_id(h, n->string);
                 if (n->next)                  if (n->next)
Line 1171  mdoc_sx_pre(MDOC_ARGS)
Line 1170  mdoc_sx_pre(MDOC_ARGS)
         struct htmlpair  tag[2];          struct htmlpair  tag[2];
   
         bufinit(h);          bufinit(h);
           bufcat(h, "#x");
         for (n = n->child; n; n = n->next) {          for (n = n->child; n; n = n->next) {
                 bufcat_id(h, n->string);                  bufcat_id(h, n->string);
                 if (n->next)                  if (n->next)
Line 1632  mdoc_sp_pre(MDOC_ARGS)
Line 1632  mdoc_sp_pre(MDOC_ARGS)
         SCALE_VS_INIT(&su, 1);          SCALE_VS_INIT(&su, 1);
   
         if (MDOC_sp == n->tok) {          if (MDOC_sp == n->tok) {
                 if (n->child)                  if (NULL != (n = n->child))
                         a2roffsu(n->child->string, &su, SCALE_VS);                          if ( ! a2roffsu(n->string, &su, SCALE_VS))
                                   SCALE_VS_INIT(&su, atoi(n->string));
         } else          } else
                 su.scale = 0;                  su.scale = 0;
   
Line 1665  mdoc_lk_pre(MDOC_ARGS)
Line 1666  mdoc_lk_pre(MDOC_ARGS)
   
         print_otag(h, TAG_A, 2, tag);          print_otag(h, TAG_A, 2, tag);
   
         for (n = n->next; n; n = n->next) {          if (NULL == n->next)
                 assert(MDOC_TEXT == n->type);  
                 print_text(h, n->string);                  print_text(h, n->string);
         }  
           for (n = n->next; n; n = n->next)
                   print_text(h, n->string);
   
         return(0);          return(0);
 }  }

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.174

CVSweb