[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.63 and 1.65

version 1.63, 2010/05/15 16:24:38 version 1.65, 2010/05/17 22:11:42
Line 27 
Line 27 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
   #include "mandoc.h"
 #include "out.h"  #include "out.h"
 #include "html.h"  #include "html.h"
 #include "mdoc.h"  #include "mdoc.h"
Line 729  mdoc_nm_pre(MDOC_ARGS)
Line 730  mdoc_nm_pre(MDOC_ARGS)
 {  {
         struct htmlpair tag;          struct htmlpair tag;
   
           if (NULL == n->child && NULL == m->name)
                   return(1);
   
         if (SEC_SYNOPSIS == n->sec &&          if (SEC_SYNOPSIS == n->sec &&
                         n->prev && MDOC_LINE & n->flags) {                          n->prev && MDOC_LINE & n->flags) {
                 bufcat_style(h, "clear", "both");                  bufcat_style(h, "clear", "both");
Line 1181  mdoc_ex_pre(MDOC_ARGS)
Line 1185  mdoc_ex_pre(MDOC_ARGS)
                         h->flags &= ~HTML_NOSPACE;                          h->flags &= ~HTML_NOSPACE;
         }          }
   
         if (n->child->next)          if (n->child && n->child->next)
                 print_text(h, "utilities exit");                  print_text(h, "utilities exit");
         else          else
                 print_text(h, "utility exits");                  print_text(h, "utility exits");
Line 1289  mdoc_d1_pre(MDOC_ARGS)
Line 1293  mdoc_d1_pre(MDOC_ARGS)
   
         /* FIXME: D1 shouldn't be literal. */          /* FIXME: D1 shouldn't be literal. */
   
         SCALE_VS_INIT(&su, INDENT - 2);          SCALE_VS_INIT(&su, INDENT - 1);
         bufcat_su(h, "margin-left", &su);          bufcat_su(h, "margin-left", &su);
         PAIR_CLASS_INIT(&tag[0], "lit");          PAIR_CLASS_INIT(&tag[0], "lit");
         PAIR_STYLE_INIT(&tag[1], h);          PAIR_STYLE_INIT(&tag[1], h);
Line 1402  mdoc_bd_pre(MDOC_ARGS)
Line 1406  mdoc_bd_pre(MDOC_ARGS)
                                 break;                                  break;
                 }                  }
                 if (comp) {                  if (comp) {
                         print_otag(h, TAG_DIV, 0, tag);                          PAIR_STYLE_INIT(&tag[0], h);
                           print_otag(h, TAG_DIV, 1, tag);
                         return(1);                          return(1);
                 }                  }
                 SCALE_VS_INIT(&su, 1);                  SCALE_VS_INIT(&su, 1);
Line 1950  mdoc_rv_pre(MDOC_ARGS)
Line 1955  mdoc_rv_pre(MDOC_ARGS)
                         print_text(h, "()");                          print_text(h, "()");
         }          }
   
         if (n->child->next)          if (n->child && n->child->next)
                 print_text(h, "functions return");                  print_text(h, "functions return");
         else          else
                 print_text(h, "function returns");                  print_text(h, "function returns");

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.65

CVSweb