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

Diff for /mandoc/html.c between version 1.25 and 1.26

version 1.25, 2008/12/10 17:31:57 version 1.26, 2008/12/10 17:40:56
Line 127  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
Line 127  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
 {  {
         struct htmlnode *n;          struct htmlnode *n;
         int              i;          int              i;
           struct html_pair attr[2];
   
         for (n = q->last; n; n = n->parent)          for (n = q->last; n; n = n->parent)
                 if (n->tok == ROFF_Bl)                  if (n->tok == ROFF_Bl)
Line 141  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
Line 142  html_It_headtagname(struct md_mbuf *mbuf, struct htmlq
                 case (ROFF_Ohang):                  case (ROFF_Ohang):
                         return(html_stput(mbuf, HTML_TAG_DIV, res));                          return(html_stput(mbuf, HTML_TAG_DIV, res));
                 case (ROFF_Tag):                  case (ROFF_Tag):
                         /* FALLTHROUGH */                          attr[0].attr = HTML_ATTR_VALIGN;
                           attr[0].val = "top";
                           attr[1].attr = HTML_ATTR_NOWRAP;
                           attr[1].val = "true";
                           return(html_saput(mbuf, HTML_TAG_TD,
                                                   res, 2, attr));
                 case (ROFF_Column):                  case (ROFF_Column):
                         return(html_stput(mbuf, HTML_TAG_TD, res));                          attr[0].attr = HTML_ATTR_VALIGN;
                           attr[0].val = "top";
                           return(html_saput(mbuf, HTML_TAG_TD,
                                                   res, 1, attr));
                 default:                  default:
                         break;                          break;
                 }                  }
Line 160  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
Line 169  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
 {  {
         struct htmlnode *n;          struct htmlnode *n;
         int              i;          int              i;
           struct html_pair attr[1];
   
         for (n = q->last; n; n = n->parent)          for (n = q->last; n; n = n->parent)
                 if (n->tok == ROFF_Bl)                  if (n->tok == ROFF_Bl)
Line 192  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
Line 202  html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq
                 case (ROFF_Tag):                  case (ROFF_Tag):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (ROFF_Column):                  case (ROFF_Column):
                         return(html_stput(mbuf, HTML_TAG_TD, res));                          attr[0].attr = HTML_ATTR_VALIGN;
                           attr[0].val = "top";
                           return(html_saput(mbuf, HTML_TAG_TD,
                                                   res, 1, attr));
                 default:                  default:
                         break;                          break;
                 }                  }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

CVSweb