[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.102 and 1.105

version 1.102, 2010/08/20 01:02:07 version 1.105, 2010/09/25 15:51:30
Line 1183  mdoc_bl_pre(MDOC_ARGS)
Line 1183  mdoc_bl_pre(MDOC_ARGS)
         ord = malloc(sizeof(struct ord));          ord = malloc(sizeof(struct ord));
         if (NULL == ord) {          if (NULL == ord) {
                 perror(NULL);                  perror(NULL);
                 exit(MANDOCLEVEL_SYSERR);                  exit((int)MANDOCLEVEL_SYSERR);
         }          }
         ord->cookie = n;          ord->cookie = n;
         ord->pos = 1;          ord->pos = 1;
Line 2108  static int
Line 2108  static int
 mdoc_rs_pre(MDOC_ARGS)  mdoc_rs_pre(MDOC_ARGS)
 {  {
         struct htmlpair  tag;          struct htmlpair  tag;
         struct roffsu    su;  
   
         if (MDOC_BLOCK != n->type)          if (MDOC_BLOCK != n->type)
                 return(1);                  return(1);
   
         if (n->prev && SEC_SEE_ALSO == n->sec) {          if (n->prev && SEC_SEE_ALSO == n->sec) {
                 SCALE_VS_INIT(&su, 1);                  print_otag(h, TAG_BR, 0, NULL);
                 bufcat_su(h, "margin-top", &su);                  print_otag(h, TAG_BR, 0, NULL);
                 PAIR_STYLE_INIT(&tag, h);          }
                 print_otag(h, TAG_DIV, 1, &tag);  
         }  
   
         PAIR_CLASS_INIT(&tag, "ref");          PAIR_CLASS_INIT(&tag, "ref");
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_SPAN, 1, &tag);
Line 2194  mdoc__x_pre(MDOC_ARGS)
Line 2191  mdoc__x_pre(MDOC_ARGS)
         switch (n->tok) {          switch (n->tok) {
         case(MDOC__A):          case(MDOC__A):
                 PAIR_CLASS_INIT(&tag[0], "ref-auth");                  PAIR_CLASS_INIT(&tag[0], "ref-auth");
                   if (n->prev && MDOC__A == n->prev->tok)
                           if (NULL == n->next || MDOC__A != n->next->tok)
                                   print_text(h, "and");
                 break;                  break;
         case(MDOC__B):          case(MDOC__B):
                 PAIR_CLASS_INIT(&tag[0], "ref-book");                  PAIR_CLASS_INIT(&tag[0], "ref-book");
Line 2246  mdoc__x_pre(MDOC_ARGS)
Line 2246  mdoc__x_pre(MDOC_ARGS)
   
         PAIR_HREF_INIT(&tag[1], n->child->string);          PAIR_HREF_INIT(&tag[1], n->child->string);
         print_otag(h, TAG_A, 2, tag);          print_otag(h, TAG_A, 2, tag);
   
         return(1);          return(1);
 }  }
   
Line 2254  mdoc__x_pre(MDOC_ARGS)
Line 2255  mdoc__x_pre(MDOC_ARGS)
 static void  static void
 mdoc__x_post(MDOC_ARGS)  mdoc__x_post(MDOC_ARGS)
 {  {
   
           if (MDOC__A == n->tok && n->next && MDOC__A == n->next->tok)
                   if (NULL == n->next->next || MDOC__A != n->next->next->tok)
                           if (NULL == n->prev || MDOC__A != n->prev->tok)
                                   return;
   
         /* TODO: %U */          /* TODO: %U */
   

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.105

CVSweb