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

Diff for /mandoc/html.c between version 1.14 and 1.16

version 1.14, 2008/12/07 21:30:49 version 1.16, 2008/12/08 16:29:57
Line 75  static int  html_begin(struct md_mbuf *,
Line 75  static int  html_begin(struct md_mbuf *,
                                 const struct md_args *,                                  const struct md_args *,
                                 const struct tm *,                                  const struct tm *,
                                 const char *, const char *,                                  const char *, const char *,
                                 const char *, const char *);                                  enum roffmsec, const char *);
 static  int             html_printargs(struct md_mbuf *, int,  static  int             html_printargs(struct md_mbuf *, int,
                                 const char *, const int *,                                  const char *, const int *,
                                 const char **, size_t *);                                  const char **, size_t *);
Line 141  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
Line 141  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
                 switch (n->argc[i]) {                  switch (n->argc[i]) {
                 case (ROFF_Ohang):                  case (ROFF_Ohang):
                         return(ml_nputs(mbuf, "div", 3, res));                          return(ml_nputs(mbuf, "div", 3, res));
   
                 case (ROFF_Tag):                  case (ROFF_Tag):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (ROFF_Column):                  case (ROFF_Column):
Line 151  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
Line 150  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
                 }                  }
         }          }
   
         abort();          return(0);
         /* NOTREACHED */  
 }  }
   
   
Line 202  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
Line 200  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
         }          }
   
         assert(i != ROFF_MAXLINEARG);          assert(i != ROFF_MAXLINEARG);
         abort();          return(0);
         /* NOTREACHED */  
   
         return(1);  
 }  }
   
   
Line 247  html_Bl_bodytagname(struct md_mbuf *mbuf, struct htmlq
Line 242  html_Bl_bodytagname(struct md_mbuf *mbuf, struct htmlq
         }          }
   
         assert(i != ROFF_MAXLINEARG);          assert(i != ROFF_MAXLINEARG);
         abort();          return(0);
         /* NOTREACHED */  
 }  }
   
   
Line 298  html_It_blocktagname(struct md_mbuf *mbuf, struct html
Line 292  html_It_blocktagname(struct md_mbuf *mbuf, struct html
         }          }
   
         assert(i != ROFF_MAXLINEARG);          assert(i != ROFF_MAXLINEARG);
         abort();          return(0);
         /* NOTREACHED */  
 }  }
   
   
Line 361  out:
Line 354  out:
 static int  static int
 html_begin(struct md_mbuf *mbuf, const struct md_args *args,  html_begin(struct md_mbuf *mbuf, const struct md_args *args,
                 const struct tm *tm, const char *os,                  const struct tm *tm, const char *os,
                 const char *title, const char *section,                  const char *title, enum roffmsec section,
                 const char *vol)                  const char *vol)
 {  {
         const char      *preamble, *css, *trail;          const char      *preamble, *css, *trail;
Line 389  html_begin(struct md_mbuf *mbuf, const struct md_args 
Line 382  html_begin(struct md_mbuf *mbuf, const struct md_args 
         res = 0;          res = 0;
   
         (void)snprintf(buf, sizeof(buf) - 1,          (void)snprintf(buf, sizeof(buf) - 1,
                         preamble, title, section);                          preamble, title, ml_section(section));
   
         if ( ! ml_puts(mbuf, buf, &res))          if ( ! ml_puts(mbuf, buf, &res))
                 return(0);                  return(0);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.16

CVSweb