[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.121 and 1.122

version 1.121, 2010/12/15 23:44:02 version 1.122, 2010/12/16 22:57:20
Line 903  mdoc_it_pre(MDOC_ARGS)
Line 903  mdoc_it_pre(MDOC_ARGS)
         assert(lists[type]);          assert(lists[type]);
         PAIR_CLASS_INIT(&tag[0], lists[type]);          PAIR_CLASS_INIT(&tag[0], lists[type]);
   
         SCALE_VS_INIT(&su, ! bl->data.Bl->comp);  
         bufcat_su(h, "margin-top", &su);  
         PAIR_STYLE_INIT(&tag[1], h);  
   
         if (MDOC_HEAD == n->type) {          if (MDOC_HEAD == n->type) {
                 switch (type) {                  switch (type) {
                 case(LIST_bullet):                  case(LIST_bullet):
Line 928  mdoc_it_pre(MDOC_ARGS)
Line 924  mdoc_it_pre(MDOC_ARGS)
                 case(LIST_ohang):                  case(LIST_ohang):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case(LIST_tag):                  case(LIST_tag):
                           SCALE_VS_INIT(&su, ! bl->data.Bl->comp);
                           bufcat_su(h, "margin-top", &su);
                           PAIR_STYLE_INIT(&tag[1], h);
                         print_otag(h, TAG_DT, 2, tag);                          print_otag(h, TAG_DT, 2, tag);
                         break;                          break;
                 case(LIST_column):                  case(LIST_column):
Line 946  mdoc_it_pre(MDOC_ARGS)
Line 945  mdoc_it_pre(MDOC_ARGS)
                 case(LIST_enum):                  case(LIST_enum):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case(LIST_item):                  case(LIST_item):
                         /* FALLTHROUGH */                          SCALE_VS_INIT(&su, ! bl->data.Bl->comp);
                           bufcat_su(h, "margin-top", &su);
                           PAIR_STYLE_INIT(&tag[1], h);
                         print_otag(h, TAG_LI, 2, tag);                          print_otag(h, TAG_LI, 2, tag);
                         break;                          break;
                 case(LIST_diag):                  case(LIST_diag):
Line 958  mdoc_it_pre(MDOC_ARGS)
Line 959  mdoc_it_pre(MDOC_ARGS)
                 case(LIST_ohang):                  case(LIST_ohang):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case(LIST_tag):                  case(LIST_tag):
                         print_otag(h, TAG_DD, 1, tag);                          if (NULL == bl->data.Bl->width) {
                                   print_otag(h, TAG_DD, 1, tag);
                                   break;
                           }
                           a2width(bl->data.Bl->width, &su);
                           bufcat_su(h, "margin-left", &su);
                           PAIR_STYLE_INIT(&tag[1], h);
                           print_otag(h, TAG_DD, 2, tag);
                         break;                          break;
                 case(LIST_column):                  case(LIST_column):
                           SCALE_VS_INIT(&su, ! bl->data.Bl->comp);
                           bufcat_su(h, "margin-top", &su);
                           PAIR_STYLE_INIT(&tag[1], h);
                         print_otag(h, TAG_TD, 2, tag);                          print_otag(h, TAG_TD, 2, tag);
                         break;                          break;
                 default:                  default:

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

CVSweb