[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.131 and 1.132

version 1.131, 2010/12/19 12:14:36 version 1.132, 2010/12/20 10:40:11
Line 461  print_mdoc_node(MDOC_ARGS)
Line 461  print_mdoc_node(MDOC_ARGS)
 static void  static void
 mdoc_root_post(MDOC_ARGS)  mdoc_root_post(MDOC_ARGS)
 {  {
         struct htmlpair  tag[2];          struct htmlpair  tag[3];
         struct tag      *t, *tt;          struct tag      *t, *tt;
         char             b[DATESIZ];          char             b[DATESIZ];
   
         time2a(m->date, b, DATESIZ);          time2a(m->date, b, DATESIZ);
   
         PAIR_CLASS_INIT(&tag[0], "foot");          PAIR_SUMMARY_INIT(&tag[0], "Document Footer");
         PAIR_SUMMARY_INIT(&tag[1], "Document Footer");          PAIR_CLASS_INIT(&tag[1], "foot");
         t = print_otag(h, TAG_TABLE, 2, tag);          if (NULL == h->style) {
                   PAIR_INIT(&tag[1], ATTR_WIDTH, "100%");
                   t = print_otag(h, TAG_TABLE, 3, tag);
                   PAIR_INIT(&tag[0], ATTR_WIDTH, "50%");
                   print_otag(h, TAG_COL, 1, tag);
                   print_otag(h, TAG_COL, 1, tag);
           } else
                   t = print_otag(h, TAG_TABLE, 2, tag);
   
           t = print_otag(h, TAG_TBODY, 0, NULL);
   
         tt = print_otag(h, TAG_TR, 0, NULL);          tt = print_otag(h, TAG_TR, 0, NULL);
   
         PAIR_CLASS_INIT(&tag[0], "foot-date");          PAIR_CLASS_INIT(&tag[0], "foot-date");
Line 480  mdoc_root_post(MDOC_ARGS)
Line 489  mdoc_root_post(MDOC_ARGS)
         print_stagq(h, tt);          print_stagq(h, tt);
   
         PAIR_CLASS_INIT(&tag[0], "foot-os");          PAIR_CLASS_INIT(&tag[0], "foot-os");
         print_otag(h, TAG_TD, 1, tag);          if (NULL == h->style) {
                   PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
                   print_otag(h, TAG_TD, 2, tag);
           } else
                   print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, m->os);          print_text(h, m->os);
         print_tagq(h, t);          print_tagq(h, t);
Line 505  mdoc_root_pre(MDOC_ARGS)
Line 518  mdoc_root_pre(MDOC_ARGS)
   
         snprintf(title, BUFSIZ - 1, "%s(%s)", m->title, m->msec);          snprintf(title, BUFSIZ - 1, "%s(%s)", m->title, m->msec);
   
         PAIR_CLASS_INIT(&tag[0], "head");          PAIR_SUMMARY_INIT(&tag[0], "Document Header");
         PAIR_SUMMARY_INIT(&tag[1], "Document Header");          PAIR_CLASS_INIT(&tag[1], "head");
         t = print_otag(h, TAG_TABLE, 2, tag);          if (NULL == h->style) {
                   PAIR_INIT(&tag[2], ATTR_WIDTH, "100%");
                   t = print_otag(h, TAG_TABLE, 3, tag);
                   PAIR_INIT(&tag[0], ATTR_WIDTH, "30%");
                   print_otag(h, TAG_COL, 1, tag);
                   print_otag(h, TAG_COL, 1, tag);
                   print_otag(h, TAG_COL, 1, tag);
           } else
                   t = print_otag(h, TAG_TABLE, 2, tag);
   
           print_otag(h, TAG_TBODY, 0, NULL);
   
         tt = print_otag(h, TAG_TR, 0, NULL);          tt = print_otag(h, TAG_TR, 0, NULL);
   
         PAIR_CLASS_INIT(&tag[0], "head-ltitle");          PAIR_CLASS_INIT(&tag[0], "head-ltitle");
Line 518  mdoc_root_pre(MDOC_ARGS)
Line 541  mdoc_root_pre(MDOC_ARGS)
         print_stagq(h, tt);          print_stagq(h, tt);
   
         PAIR_CLASS_INIT(&tag[0], "head-vol");          PAIR_CLASS_INIT(&tag[0], "head-vol");
         print_otag(h, TAG_TD, 1, tag);          if (NULL == h->style) {
                   PAIR_INIT(&tag[1], ATTR_ALIGN, "center");
                   print_otag(h, TAG_TD, 2, tag);
           } else
                   print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, b);          print_text(h, b);
         print_stagq(h, tt);          print_stagq(h, tt);
   
         PAIR_CLASS_INIT(&tag[0], "head-rtitle");          PAIR_CLASS_INIT(&tag[0], "head-rtitle");
         print_otag(h, TAG_TD, 1, tag);          if (NULL == h->style) {
                   PAIR_INIT(&tag[1], ATTR_ALIGN, "right");
                   print_otag(h, TAG_TD, 2, tag);
           } else
                   print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, title);          print_text(h, title);
         print_tagq(h, t);          print_tagq(h, t);
Line 593  mdoc_fl_pre(MDOC_ARGS)
Line 624  mdoc_fl_pre(MDOC_ARGS)
         struct htmlpair  tag;          struct htmlpair  tag;
   
         PAIR_CLASS_INIT(&tag, "flag");          PAIR_CLASS_INIT(&tag, "flag");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_B, 1, &tag);
   
         /* `Cm' has no leading hyphen. */          /* `Cm' has no leading hyphen. */
   
Line 640  mdoc_nm_pre(MDOC_ARGS)
Line 671  mdoc_nm_pre(MDOC_ARGS)
         case (MDOC_ELEM):          case (MDOC_ELEM):
                 synopsis_pre(h, n);                  synopsis_pre(h, n);
                 PAIR_CLASS_INIT(&tag, "name");                  PAIR_CLASS_INIT(&tag, "name");
                 print_otag(h, TAG_SPAN, 1, &tag);                  print_otag(h, TAG_B, 1, &tag);
                 if (NULL == n->child && m->name)                  if (NULL == n->child && m->name)
                         print_text(h, m->name);                          print_text(h, m->name);
                 return(1);                  return(1);
Line 826  mdoc_it_pre(MDOC_ARGS)
Line 857  mdoc_it_pre(MDOC_ARGS)
                 case(LIST_enum):                  case(LIST_enum):
                         return(0);                          return(0);
                 case(LIST_diag):                  case(LIST_diag):
                           /* FIXME: STYLE for diag! */
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case(LIST_hang):                  case(LIST_hang):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
Line 1010  mdoc_ex_pre(MDOC_ARGS)
Line 1042  mdoc_ex_pre(MDOC_ARGS)
   
         print_text(h, "The");          print_text(h, "The");
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 t = print_otag(h, TAG_SPAN, 1, &tag);                  t = print_otag(h, TAG_B, 1, &tag);
                 print_text(h, nn->string);                  print_text(h, nn->string);
                 print_tagq(h, t);                  print_tagq(h, t);
   
Line 1227  mdoc_cd_pre(MDOC_ARGS)
Line 1259  mdoc_cd_pre(MDOC_ARGS)
   
         synopsis_pre(h, n);          synopsis_pre(h, n);
         PAIR_CLASS_INIT(&tag, "config");          PAIR_CLASS_INIT(&tag, "config");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_B, 1, &tag);
         return(1);          return(1);
 }  }
   
Line 1306  mdoc_fd_pre(MDOC_ARGS)
Line 1338  mdoc_fd_pre(MDOC_ARGS)
         synopsis_pre(h, n);          synopsis_pre(h, n);
   
         PAIR_CLASS_INIT(&tag, "macro");          PAIR_CLASS_INIT(&tag, "macro");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_B, 1, &tag);
         return(1);          return(1);
 }  }
   
Line 1395  mdoc_fn_pre(MDOC_ARGS)
Line 1427  mdoc_fn_pre(MDOC_ARGS)
         }          }
 #endif  #endif
   
         t = print_otag(h, TAG_SPAN, 1, tag);          t = print_otag(h, TAG_B, 1, tag);
   
         if (sp) {          if (sp) {
                 strlcpy(nbuf, sp, BUFSIZ);                  strlcpy(nbuf, sp, BUFSIZ);
Line 1593  mdoc_in_pre(MDOC_ARGS)
Line 1625  mdoc_in_pre(MDOC_ARGS)
         synopsis_pre(h, n);          synopsis_pre(h, n);
   
         PAIR_CLASS_INIT(&tag[0], "includes");          PAIR_CLASS_INIT(&tag[0], "includes");
         print_otag(h, TAG_SPAN, 1, tag);          print_otag(h, TAG_B, 1, tag);
   
         if (MDOC_SYNPRETTY & n->flags && MDOC_LINE & n->flags)          if (MDOC_SYNPRETTY & n->flags && MDOC_LINE & n->flags)
                 print_text(h, "#include");                  print_text(h, "#include");
Line 1629  mdoc_ic_pre(MDOC_ARGS)
Line 1661  mdoc_ic_pre(MDOC_ARGS)
         struct htmlpair tag;          struct htmlpair tag;
   
         PAIR_CLASS_INIT(&tag, "cmd");          PAIR_CLASS_INIT(&tag, "cmd");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_B, 1, &tag);
         return(1);          return(1);
 }  }
   
Line 1671  mdoc_rv_pre(MDOC_ARGS)
Line 1703  mdoc_rv_pre(MDOC_ARGS)
                         "-1 is returned and the global variable");                          "-1 is returned and the global variable");
   
         PAIR_CLASS_INIT(&tag, "var");          PAIR_CLASS_INIT(&tag, "var");
         t = print_otag(h, TAG_SPAN, 1, &tag);          t = print_otag(h, TAG_B, 1, &tag);
         print_text(h, "errno");          print_text(h, "errno");
         print_tagq(h, t);          print_tagq(h, t);
         print_text(h, "is set to indicate the error.");          print_text(h, "is set to indicate the error.");
Line 1686  mdoc_va_pre(MDOC_ARGS)
Line 1718  mdoc_va_pre(MDOC_ARGS)
         struct htmlpair tag;          struct htmlpair tag;
   
         PAIR_CLASS_INIT(&tag, "var");          PAIR_CLASS_INIT(&tag, "var");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_B, 1, &tag);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

CVSweb