[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.67 and 1.70

version 1.67, 2011/01/17 00:21:29 version 1.70, 2011/03/07 01:35:51
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 180  print_man_node(MAN_ARGS)
Line 180  print_man_node(MAN_ARGS)
 {  {
         int              child;          int              child;
         struct tag      *t;          struct tag      *t;
           struct htmlpair  tag;
   
         child = 1;          child = 1;
         t = h->tags.head;          t = h->tags.head;
Line 215  print_man_node(MAN_ARGS)
Line 216  print_man_node(MAN_ARGS)
                                  n->next->line > n->line))                                   n->next->line > n->line))
                         print_otag(h, TAG_BR, 0, NULL);                          print_otag(h, TAG_BR, 0, NULL);
                 return;                  return;
           case (MAN_EQN):
                   PAIR_CLASS_INIT(&tag, "eqn");
                   print_otag(h, TAG_SPAN, 1, &tag);
                   print_text(h, n->eqn->data);
                   break;
         case (MAN_TBL):          case (MAN_TBL):
                 /*                  /*
                  * This will take care of initialising all of the table                   * This will take care of initialising all of the table
Line 259  print_man_node(MAN_ARGS)
Line 265  print_man_node(MAN_ARGS)
         case (MAN_ROOT):          case (MAN_ROOT):
                 man_root_post(m, n, mh, h);                  man_root_post(m, n, mh, h);
                 break;                  break;
           case (MAN_EQN):
                   break;
         default:          default:
                 if (mans[n->tok].post)                  if (mans[n->tok].post)
                         (*mans[n->tok].post)(m, n, mh, h);                          (*mans[n->tok].post)(m, n, mh, h);
Line 344  man_root_post(MAN_ARGS)
Line 352  man_root_post(MAN_ARGS)
 {  {
         struct htmlpair  tag[3];          struct htmlpair  tag[3];
         struct tag      *t, *tt;          struct tag      *t, *tt;
         char             b[DATESIZ];  
   
         if (m->rawdate)  
                 strlcpy(b, m->rawdate, DATESIZ);  
         else  
                 time2a(m->date, b, DATESIZ);  
   
         PAIR_SUMMARY_INIT(&tag[0], "Document Footer");          PAIR_SUMMARY_INIT(&tag[0], "Document Footer");
         PAIR_CLASS_INIT(&tag[1], "foot");          PAIR_CLASS_INIT(&tag[1], "foot");
         if (NULL == h->style) {          if (NULL == h->style) {
Line 367  man_root_post(MAN_ARGS)
Line 369  man_root_post(MAN_ARGS)
         PAIR_CLASS_INIT(&tag[0], "foot-date");          PAIR_CLASS_INIT(&tag[0], "foot-date");
         print_otag(h, TAG_TD, 1, tag);          print_otag(h, TAG_TD, 1, tag);
   
         print_text(h, b);          print_text(h, m->date);
         print_stagq(h, tt);          print_stagq(h, tt);
   
         PAIR_CLASS_INIT(&tag[0], "foot-os");          PAIR_CLASS_INIT(&tag[0], "foot-os");

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.70

CVSweb