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

Diff for /mandoc/man_html.c between version 1.54 and 1.55

version 1.54, 2010/12/17 00:18:29 version 1.55, 2010/12/17 08:26:42
Line 260  a2width(const struct man_node *n, struct roffsu *su)
Line 260  a2width(const struct man_node *n, struct roffsu *su)
 static int  static int
 man_root_pre(MAN_ARGS)  man_root_pre(MAN_ARGS)
 {  {
         struct htmlpair  tag[3];          struct htmlpair  tag[2];
         struct tag      *t, *tt;          struct tag      *t, *tt;
         char             b[BUFSIZ], title[BUFSIZ];          char             b[BUFSIZ], title[BUFSIZ];
   
Line 270  man_root_pre(MAN_ARGS)
Line 270  man_root_pre(MAN_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], "header");          PAIR_CLASS_INIT(&tag[0], "head");
         bufcat_style(h, "width", "100%");          PAIR_SUMMARY_INIT(&tag[1], "Document Header");
         PAIR_STYLE_INIT(&tag[1], h);          t = print_otag(h, TAG_TABLE, 2, tag);
         PAIR_SUMMARY_INIT(&tag[2], "header");  
   
         t = print_otag(h, TAG_TABLE, 3, tag);  
         tt = print_otag(h, TAG_TR, 0, NULL);          tt = print_otag(h, TAG_TR, 0, NULL);
   
         bufinit(h);          PAIR_CLASS_INIT(&tag[0], "head-ltitle");
         bufcat_style(h, "width", "10%");  
         PAIR_STYLE_INIT(&tag[0], h);  
         print_otag(h, TAG_TD, 1, tag);          print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, title);          print_text(h, title);
         print_stagq(h, tt);          print_stagq(h, tt);
   
         bufinit(h);          PAIR_CLASS_INIT(&tag[0], "head-vol");
         bufcat_style(h, "width", "80%");  
         bufcat_style(h, "white-space", "nowrap");  
         bufcat_style(h, "text-align", "center");  
         PAIR_STYLE_INIT(&tag[0], h);  
         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, tt);          print_stagq(h, tt);
   
         bufinit(h);          PAIR_CLASS_INIT(&tag[0], "head-rtitle");
         bufcat_style(h, "width", "10%");  
         bufcat_style(h, "text-align", "right");  
         PAIR_STYLE_INIT(&tag[0], h);  
         print_otag(h, TAG_TD, 1, tag);          print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, title);          print_text(h, title);
         print_tagq(h, t);          print_tagq(h, t);
         return(1);          return(1);
Line 309  man_root_pre(MAN_ARGS)
Line 301  man_root_pre(MAN_ARGS)
 static void  static void
 man_root_post(MAN_ARGS)  man_root_post(MAN_ARGS)
 {  {
         struct htmlpair  tag[3];          struct htmlpair  tag[2];
         struct tag      *t, *tt;          struct tag      *t, *tt;
         char             b[DATESIZ];          char             b[DATESIZ];
   
Line 318  man_root_post(MAN_ARGS)
Line 310  man_root_post(MAN_ARGS)
         else          else
                 time2a(m->date, b, DATESIZ);                  time2a(m->date, b, DATESIZ);
   
         PAIR_CLASS_INIT(&tag[0], "footer");          PAIR_CLASS_INIT(&tag[0], "foot");
         bufcat_style(h, "width", "100%");          PAIR_SUMMARY_INIT(&tag[1], "Document Footer");
         PAIR_STYLE_INIT(&tag[1], h);          t = print_otag(h, TAG_TABLE, 2, tag);
         PAIR_SUMMARY_INIT(&tag[2], "footer");  
   
         t = print_otag(h, TAG_TABLE, 3, tag);  
         tt = print_otag(h, TAG_TR, 0, NULL);          tt = print_otag(h, TAG_TR, 0, NULL);
   
         bufinit(h);          PAIR_CLASS_INIT(&tag[0], "foot-date");
         bufcat_style(h, "width", "50%");  
         PAIR_STYLE_INIT(&tag[0], h);  
         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, tt);          print_stagq(h, tt);
   
         bufinit(h);          PAIR_CLASS_INIT(&tag[0], "foot-os");
         bufcat_style(h, "width", "50%");  
         bufcat_style(h, "text-align", "right");  
         PAIR_STYLE_INIT(&tag[0], h);  
         print_otag(h, TAG_TD, 1, tag);          print_otag(h, TAG_TD, 1, tag);
   
         if (m->source)          if (m->source)
                 print_text(h, m->source);                  print_text(h, m->source);
         print_tagq(h, t);          print_tagq(h, t);

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

CVSweb