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

Diff for /mandoc/html.c between version 1.96 and 1.99

version 1.96, 2010/02/17 19:48:33 version 1.99, 2010/04/12 19:45:39
Line 54  static const struct htmldata htmltags[TAG_MAX] = {
Line 54  static const struct htmldata htmltags[TAG_MAX] = {
         {"h1",          0}, /* TAG_H1 */          {"h1",          0}, /* TAG_H1 */
         {"h2",          0}, /* TAG_H2 */          {"h2",          0}, /* TAG_H2 */
         {"span",        0}, /* TAG_SPAN */          {"span",        0}, /* TAG_SPAN */
         {"link",        HTML_CLRLINE | HTML_NOSTACK}, /* TAG_LINK */          {"link",        HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_LINK */
         {"br",          HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_BR */          {"br",          HTML_CLRLINE | HTML_NOSTACK | HTML_AUTOCLOSE}, /* TAG_BR */
         {"a",           0}, /* TAG_A */          {"a",           0}, /* TAG_A */
         {"table",       HTML_CLRLINE}, /* TAG_TABLE */          {"table",       HTML_CLRLINE}, /* TAG_TABLE */
Line 507  print_text(struct html *h, const char *p)
Line 507  print_text(struct html *h, const char *p)
                 case(')'):                  case(')'):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case(']'):                  case(']'):
                         /* FALLTHROUGH */  
                 case('}'):  
                         if ( ! (HTML_IGNDELIM & h->flags))                          if ( ! (HTML_IGNDELIM & h->flags))
                                 h->flags |= HTML_NOSPACE;                                  h->flags |= HTML_NOSPACE;
                         break;                          break;
Line 523  print_text(struct html *h, const char *p)
Line 521  print_text(struct html *h, const char *p)
         if ( ! print_encode(h, p, 0))          if ( ! print_encode(h, p, 0))
                 h->flags &= ~HTML_NOSPACE;                  h->flags &= ~HTML_NOSPACE;
   
           /*
            * Note that we don't process the pipe: the parser sees it as
            * punctuation, but we don't in terms of typography.
            */
         if (*p && 0 == *(p + 1))          if (*p && 0 == *(p + 1))
                 switch (*p) {                  switch (*p) {
                 case('('):                  case('('):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case('['):                  case('['):
                         /* FALLTHROUGH */  
                 case('{'):  
                         h->flags |= HTML_NOSPACE;                          h->flags |= HTML_NOSPACE;
                         break;                          break;
                 default:                  default:

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.99

CVSweb