[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.212 and 1.213

version 1.212, 2014/11/27 16:20:31 version 1.213, 2014/11/27 22:27:56
Line 423  print_mdoc_node(MDOC_ARGS)
Line 423  print_mdoc_node(MDOC_ARGS)
                  * the "meta" table state.  This will be reopened on the                   * the "meta" table state.  This will be reopened on the
                  * next table element.                   * next table element.
                  */                   */
                 if (h->tblt) {                  if (h->tblt != NULL) {
                         print_tblclose(h);                          print_tblclose(h);
                         t = h->tags.head;                          t = h->tags.head;
                 }                  }
                   assert(h->tblt == NULL);
                 assert(NULL == h->tblt);                  if (mdocs[n->tok].pre && (n->end == ENDBODY_NOT || n->child))
                 if (mdocs[n->tok].pre && ENDBODY_NOT == n->end)  
                         child = (*mdocs[n->tok].pre)(meta, n, h);                          child = (*mdocs[n->tok].pre)(meta, n, h);
                 break;                  break;
         }          }
Line 454  print_mdoc_node(MDOC_ARGS)
Line 453  print_mdoc_node(MDOC_ARGS)
         case MDOC_EQN:          case MDOC_EQN:
                 break;                  break;
         default:          default:
                 if (mdocs[n->tok].post && ENDBODY_NOT == n->end)                  if ( ! mdocs[n->tok].post || n->flags & MDOC_ENDED)
                         (*mdocs[n->tok].post)(meta, n, h);                          break;
                   (*mdocs[n->tok].post)(meta, n, h);
                   if (n->end != ENDBODY_NOT)
                           n->pending->flags |= MDOC_ENDED;
                   if (n->end == ENDBODY_NOSPACE)
                           h->flags |= HTML_NOSPACE;
                 break;                  break;
         }          }
 }  }
Line 2142  static void
Line 2146  static void
 mdoc_quote_post(MDOC_ARGS)  mdoc_quote_post(MDOC_ARGS)
 {  {
   
         if (MDOC_BODY != n->type)          if (n->type != MDOC_BODY && n->type != MDOC_ELEM)
                 return;                  return;
   
         if (MDOC_En != n->tok)          if ( ! (n->tok == MDOC_En ||
               (n->tok == MDOC_Eo && n->end == ENDBODY_SPACE)))
                 h->flags |= HTML_NOSPACE;                  h->flags |= HTML_NOSPACE;
   
         switch (n->tok) {          switch (n->tok) {

Legend:
Removed from v.1.212  
changed lines
  Added in v.1.213

CVSweb