[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.93 and 1.94

version 1.93, 2010/07/04 21:59:30 version 1.94, 2010/07/06 12:37:17
Line 73  static int    mdoc_aq_pre(MDOC_ARGS);
Line 73  static int    mdoc_aq_pre(MDOC_ARGS);
 static  int               mdoc_ar_pre(MDOC_ARGS);  static  int               mdoc_ar_pre(MDOC_ARGS);
 static  int               mdoc_bd_pre(MDOC_ARGS);  static  int               mdoc_bd_pre(MDOC_ARGS);
 static  int               mdoc_bf_pre(MDOC_ARGS);  static  int               mdoc_bf_pre(MDOC_ARGS);
   static  void              mdoc_bk_post(MDOC_ARGS);
   static  int               mdoc_bk_pre(MDOC_ARGS);
 static  void              mdoc_bl_post(MDOC_ARGS);  static  void              mdoc_bl_post(MDOC_ARGS);
 static  int               mdoc_bl_pre(MDOC_ARGS);  static  int               mdoc_bl_pre(MDOC_ARGS);
 static  void              mdoc_bq_post(MDOC_ARGS);  static  void              mdoc_bq_post(MDOC_ARGS);
Line 237  static const struct htmlmdoc mdocs[MDOC_MAX] = {
Line 239  static const struct htmlmdoc mdocs[MDOC_MAX] = {
         {NULL, NULL}, /* Fc */          {NULL, NULL}, /* Fc */
         {mdoc_op_pre, mdoc_op_post}, /* Oo */          {mdoc_op_pre, mdoc_op_post}, /* Oo */
         {NULL, NULL}, /* Oc */          {NULL, NULL}, /* Oc */
         {NULL, NULL}, /* Bk */          {mdoc_bk_pre, mdoc_bk_post}, /* Bk */
         {NULL, NULL}, /* Ek */          {NULL, NULL}, /* Ek */
         {mdoc_bt_pre, NULL}, /* Bt */          {mdoc_bt_pre, NULL}, /* Bt */
         {NULL, NULL}, /* Hf */          {NULL, NULL}, /* Hf */
Line 442  print_mdoc_node(MDOC_ARGS)
Line 444  print_mdoc_node(MDOC_ARGS)
                 break;                  break;
         }          }
   
           if (HTML_KEEP & h->flags) {
                   if (n->prev && n->prev->line != n->line) {
                           h->flags &= ~HTML_KEEP;
                           h->flags |= HTML_PREKEEP;
                   } else if (NULL == n->prev) {
                           if (n->parent && n->parent->line != n->line) {
                                   h->flags &= ~HTML_KEEP;
                                   h->flags |= HTML_PREKEEP;
                           }
                   }
           }
   
         if (child && n->child)          if (child && n->child)
                 print_mdoc_nodelist(m, n->child, h);                  print_mdoc_nodelist(m, n->child, h);
   
Line 2226  mdoc__x_post(MDOC_ARGS)
Line 2240  mdoc__x_post(MDOC_ARGS)
   
         h->flags |= HTML_NOSPACE;          h->flags |= HTML_NOSPACE;
         print_text(h, n->next ? "," : ".");          print_text(h, n->next ? "," : ".");
   }
   
   
   /* ARGSUSED */
   static int
   mdoc_bk_pre(MDOC_ARGS)
   {
   
           switch (n->type) {
           case (MDOC_BLOCK):
                   break;
           case (MDOC_HEAD):
                   return(0);
           case (MDOC_BODY):
                   h->flags |= HTML_PREKEEP;
                   break;
           default:
                   abort();
                   /* NOTREACHED */
           }
   
           return(1);
   }
   
   
   /* ARGSUSED */
   static void
   mdoc_bk_post(MDOC_ARGS)
   {
   
           if (MDOC_BODY == n->type)
                   h->flags &= ~(HTML_KEEP | HTML_PREKEEP);
 }  }

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

CVSweb