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

Diff for /mandoc/html.c between version 1.45 and 1.46

version 1.45, 2009/09/21 13:43:21 version 1.46, 2009/09/21 13:44:56
Line 558  static void
Line 558  static void
 print_mdoc(MDOC_ARGS)  print_mdoc(MDOC_ARGS)
 {  {
         struct tag      *t;          struct tag      *t;
           struct htmlpair  tag;
   
         t = print_otag(h, TAG_HEAD, 0, NULL);          t = print_otag(h, TAG_HEAD, 0, NULL);
         print_mdoc_head(m, n, h);          print_mdoc_head(m, n, h);
         print_tagq(h, t);          print_tagq(h, t);
   
         t = print_otag(h, TAG_BODY, 0, NULL);          t = print_otag(h, TAG_BODY, 0, NULL);
   
           tag.key = ATTR_CLASS;
           tag.val = "body";
           print_otag(h, TAG_DIV, 1, &tag);
   
         print_mdoc_nodelist(m, n, h);          print_mdoc_nodelist(m, n, h);
         print_tagq(h, t);          print_tagq(h, t);
 }  }
Line 915  static void
Line 921  static void
 print_gen_doctype(struct html *h)  print_gen_doctype(struct html *h)
 {  {
   
         printf("<!DOCTYPE HTML PUBLIC \"%s\" \"%s\">\n", DOCTYPE, DTD);          printf("<!DOCTYPE HTML PUBLIC \"%s\" \"%s\">", DOCTYPE, DTD);
 }  }
   
   
Line 1059  mdoc_root_pre(MDOC_ARGS)
Line 1065  mdoc_root_pre(MDOC_ARGS)
                         "%s(%d)", m->title, m->msec);                          "%s(%d)", m->title, m->msec);
   
         tag[0].key = ATTR_CLASS;          tag[0].key = ATTR_CLASS;
         tag[0].val = "body";  
         t = print_otag(h, TAG_DIV, 1, tag);  
   
         tag[0].key = ATTR_CLASS;  
         tag[0].val = "header";          tag[0].val = "header";
         tag[1].key = ATTR_STYLE;          tag[1].key = ATTR_STYLE;
         tag[1].val = "width: 100%;";          tag[1].val = "width: 100%;";
         print_otag(h, TAG_TABLE, 2, tag);          t = print_otag(h, TAG_TABLE, 2, tag);
         tt = print_otag(h, TAG_TR, 0, NULL);          tt = print_otag(h, TAG_TR, 0, NULL);
   
         tag[0].key = ATTR_STYLE;          tag[0].key = ATTR_STYLE;
Line 1085  mdoc_root_pre(MDOC_ARGS)
Line 1087  mdoc_root_pre(MDOC_ARGS)
         tag[0].val = "width: 33%; text-align: right;";          tag[0].val = "width: 33%; text-align: right;";
         print_otag(h, TAG_TD, 1, tag);          print_otag(h, TAG_TD, 1, tag);
         print_text(h, b);          print_text(h, b);
         print_stagq(h, t);          print_tagq(h, t);
   
         return(1);          return(1);
 }  }
Line 1261  mdoc_op_pre(MDOC_ARGS)
Line 1263  mdoc_op_pre(MDOC_ARGS)
   
         /* XXX - this can contain block elements! */          /* XXX - this can contain block elements! */
         print_text(h, "\\(lB");          print_text(h, "\\(lB");
           h->flags |= HTML_NOSPACE;
         tag.key = ATTR_CLASS;          tag.key = ATTR_CLASS;
         tag.val = "opt";          tag.val = "opt";
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_SPAN, 1, &tag);
Line 1422  mdoc_tbl_block_pre(MDOC_ARGS, int t, int w, int o, int
Line 1425  mdoc_tbl_block_pre(MDOC_ARGS, int t, int w, int o, int
                 break;                  break;
         }          }
   
         if ( ! c && n->prev && n->prev->body->child)          if ( ! c && MDOC_Column != t) {
                 bufcat("padding-top: 1em;");                 if (n->prev && n->prev->body->child)
                          bufcat("padding-top: 1em;");
                  else if (NULL == n->prev)
                          bufcat("padding-top: 1em;");
           }
   
         tag.key = ATTR_STYLE;          tag.key = ATTR_STYLE;
         tag.val = buf;          tag.val = buf;

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

CVSweb