[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.86 and 1.87

version 1.86, 2010/06/26 15:36:37 version 1.87, 2010/06/27 16:18:13
Line 304  synopsis_pre(struct html *h, const struct mdoc_node *n
Line 304  synopsis_pre(struct html *h, const struct mdoc_node *n
         struct roffsu    su;          struct roffsu    su;
         struct htmlpair  tag;          struct htmlpair  tag;
   
         if (NULL == n->prev || SEC_SYNOPSIS != n->sec)          if (NULL == n->prev || ! (MDOC_SYNPRETTY & n->flags))
                 return;                  return;
   
         SCALE_VS_INIT(&su, 1);          SCALE_VS_INIT(&su, 1);
Line 1614  mdoc_fn_pre(MDOC_ARGS)
Line 1614  mdoc_fn_pre(MDOC_ARGS)
          */           */
   
 #if 0  #if 0
         if (SEC_SYNOPSIS == n->sec) {          if (MDOC_SYNPRETTY & n->flags) {
                 nbuf[0] = '\0';                  nbuf[0] = '\0';
                 html_idcat(nbuf, sp, BUFSIZ);                  html_idcat(nbuf, sp, BUFSIZ);
                 PAIR_ID_INIT(&tag[1], nbuf);                  PAIR_ID_INIT(&tag[1], nbuf);
Line 1644  mdoc_fn_pre(MDOC_ARGS)
Line 1644  mdoc_fn_pre(MDOC_ARGS)
   
         for (nn = n->child->next; nn; nn = nn->next) {          for (nn = n->child->next; nn; nn = nn->next) {
                 i = 1;                  i = 1;
                 if (SEC_SYNOPSIS == n->sec)                  if (MDOC_SYNPRETTY & n->flags)
                         i = 2;                          i = 2;
                 t = print_otag(h, TAG_SPAN, i, tag);                  t = print_otag(h, TAG_SPAN, i, tag);
                 print_text(h, nn->string);                  print_text(h, nn->string);
Line 1654  mdoc_fn_pre(MDOC_ARGS)
Line 1654  mdoc_fn_pre(MDOC_ARGS)
         }          }
   
         print_text(h, ")");          print_text(h, ")");
         if (SEC_SYNOPSIS == n->sec)          if (MDOC_SYNPRETTY & n->flags)
                 print_text(h, ";");                  print_text(h, ";");
   
         return(0);          return(0);
Line 1824  mdoc_in_pre(MDOC_ARGS)
Line 1824  mdoc_in_pre(MDOC_ARGS)
         PAIR_CLASS_INIT(&tag[0], "includes");          PAIR_CLASS_INIT(&tag[0], "includes");
         print_otag(h, TAG_SPAN, 1, tag);          print_otag(h, TAG_SPAN, 1, tag);
   
         if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags)          if (MDOC_SYNPRETTY & n->flags && MDOC_LINE & n->flags)
                 print_text(h, "#include");                  print_text(h, "#include");
   
         print_text(h, "<");          print_text(h, "<");

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87

CVSweb