[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.299 and 1.300

version 1.299, 2018/05/08 21:42:34 version 1.300, 2018/05/09 00:46:10
Line 583  mdoc_nd_pre(MDOC_ARGS)
Line 583  mdoc_nd_pre(MDOC_ARGS)
         if (n->type != ROFFT_BODY)          if (n->type != ROFFT_BODY)
                 return 1;                  return 1;
   
         /* XXX: this tag in theory can contain block elements. */  
   
         print_text(h, "\\(em");          print_text(h, "\\(em");
         print_otag(h, TAG_SPAN, "cT", "Nd");          /* Cannot use TAG_SPAN because it may contain blocks. */
           print_otag(h, TAG_DIV, "cT", "Nd");
         return 1;          return 1;
 }  }
   
Line 1444  mdoc_bf_pre(MDOC_ARGS)
Line 1443  mdoc_bf_pre(MDOC_ARGS)
                 return 1;                  return 1;
   
         if (FONT_Em == n->norm->Bf.font)          if (FONT_Em == n->norm->Bf.font)
                 cattr = "Em";                  cattr = "Bf Em";
         else if (FONT_Sy == n->norm->Bf.font)          else if (FONT_Sy == n->norm->Bf.font)
                 cattr = "Sy";                  cattr = "Bf Sy";
         else if (FONT_Li == n->norm->Bf.font)          else if (FONT_Li == n->norm->Bf.font)
                 cattr = "Li";                  cattr = "Bf Li";
         else          else
                 cattr = "No";                  cattr = "Bf No";
   
         /*          /* Cannot use TAG_SPAN because it may contain blocks. */
          * We want this to be inline-formatted, but needs to be div to          print_otag(h, TAG_DIV, "cshl", cattr, 1);
          * accept block children.  
          */  
   
         print_otag(h, TAG_DIV, "css?hl", cattr, "display", "inline", 1);  
         return 1;          return 1;
 }  }
   
Line 1678  mdoc_quote_pre(MDOC_ARGS)
Line 1673  mdoc_quote_pre(MDOC_ARGS)
         case MDOC_Op:          case MDOC_Op:
                 print_text(h, "\\(lB");                  print_text(h, "\\(lB");
                 h->flags |= HTML_NOSPACE;                  h->flags |= HTML_NOSPACE;
                 print_otag(h, TAG_SPAN, "c", "Op");                  /* Cannot use TAG_SPAN because it may contain blocks. */
                   print_otag(h, TAG_IDIV, "c", "Op");
                 break;                  break;
         case MDOC_En:          case MDOC_En:
                 if (NULL == n->norm->Es ||                  if (NULL == n->norm->Es ||

Legend:
Removed from v.1.299  
changed lines
  Added in v.1.300

CVSweb