[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.146 and 1.148

version 1.146, 2011/01/25 15:28:56 version 1.148, 2011/01/25 16:20:24
Line 823  mdoc_xx_pre(MDOC_ARGS)
Line 823  mdoc_xx_pre(MDOC_ARGS)
   
         PAIR_CLASS_INIT(&tag, "unix");          PAIR_CLASS_INIT(&tag, "unix");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_SPAN, 1, &tag);
   
         print_text(h, pp);          print_text(h, pp);
         return(1);          if (n->child) {
                   h->flags |= HTML_KEEP;
                   print_text(h, n->child->string);
                   h->flags &= ~HTML_KEEP;
           }
           return(0);
 }  }
   
   
Line 833  static int
Line 839  static int
 mdoc_bx_pre(MDOC_ARGS)  mdoc_bx_pre(MDOC_ARGS)
 {  {
         struct htmlpair  tag;          struct htmlpair  tag;
         char             buf[3];  
   
         PAIR_CLASS_INIT(&tag, "unix");          PAIR_CLASS_INIT(&tag, "unix");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_SPAN, 1, &tag);
Line 848  mdoc_bx_pre(MDOC_ARGS)
Line 853  mdoc_bx_pre(MDOC_ARGS)
         }          }
   
         if (NULL != (n = n->next)) {          if (NULL != (n = n->next)) {
                 buf[0] = '-';  
                 buf[1] = toupper((unsigned char)*n->string);  
                 buf[2] = '\0';  
   
                 h->flags |= HTML_NOSPACE;                  h->flags |= HTML_NOSPACE;
                 print_text(h, buf);                  print_text(h, "-");
                 h->flags |= HTML_NOSPACE;                  h->flags |= HTML_NOSPACE;
                 print_text(h, n->string + 1);                  print_text(h, n->string);
         }          }
   
         return(0);          return(0);

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.148

CVSweb