[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.224 and 1.225

version 1.224, 2015/02/11 14:15:12 version 1.225, 2015/02/12 12:24:33
Line 35 
Line 35 
 #define INDENT           5  #define INDENT           5
   
 #define MDOC_ARGS         const struct mdoc_meta *meta, \  #define MDOC_ARGS         const struct mdoc_meta *meta, \
                           const struct mdoc_node *n, \                            struct mdoc_node *n, \
                           struct html *h                            struct html *h
   
 #ifndef MIN  #ifndef MIN
Line 267  void
Line 267  void
 html_mdoc(void *arg, const struct mdoc *mdoc)  html_mdoc(void *arg, const struct mdoc *mdoc)
 {  {
   
         print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc),          print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc)->child,
             (struct html *)arg);              (struct html *)arg);
         putchar('\n');          putchar('\n');
 }  }
Line 387  print_mdoc_node(MDOC_ARGS)
Line 387  print_mdoc_node(MDOC_ARGS)
   
         child = 1;          child = 1;
         t = h->tags.head;          t = h->tags.head;
           n->flags &= ~MDOC_ENDED;
   
         switch (n->type) {          switch (n->type) {
         case MDOC_ROOT:          case MDOC_ROOT:
Line 457  print_mdoc_node(MDOC_ARGS)
Line 458  print_mdoc_node(MDOC_ARGS)
                         break;                          break;
                 (*mdocs[n->tok].post)(meta, n, h);                  (*mdocs[n->tok].post)(meta, n, h);
                 if (n->end != ENDBODY_NOT)                  if (n->end != ENDBODY_NOT)
                         n->pending->flags |= MDOC_ENDED;                          n->body->flags |= MDOC_ENDED;
                 if (n->end == ENDBODY_NOSPACE)                  if (n->end == ENDBODY_NOSPACE)
                         h->flags |= HTML_NOSPACE;                          h->flags |= HTML_NOSPACE;
                 break;                  break;
Line 1122  mdoc_bd_pre(MDOC_ARGS)
Line 1123  mdoc_bd_pre(MDOC_ARGS)
 {  {
         struct htmlpair          tag[2];          struct htmlpair          tag[2];
         int                      comp, sv;          int                      comp, sv;
         const struct mdoc_node  *nn;          struct mdoc_node        *nn;
         struct roffsu            su;          struct roffsu            su;
   
         if (MDOC_HEAD == n->type)          if (MDOC_HEAD == n->type)

Legend:
Removed from v.1.224  
changed lines
  Added in v.1.225

CVSweb