[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.99 and 1.102

version 1.99, 2010/07/23 00:08:57 version 1.102, 2010/08/20 01:02:07
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(EXIT_FAILURE);                  exit(MANDOCLEVEL_SYSERR);
         }          }
         ord->cookie = n;          ord->cookie = n;
         ord->pos = 1;          ord->pos = 1;
Line 1457  mdoc_bd_pre(MDOC_ARGS)
Line 1457  mdoc_bd_pre(MDOC_ARGS)
         print_otag(h, TAG_DIV, 2, tag);          print_otag(h, TAG_DIV, 2, tag);
   
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 h->flags |= HTML_NOSPACE;  
                 print_mdoc_node(m, nn, h);                  print_mdoc_node(m, nn, h);
                 if (NULL == nn->next)                  if (nn->next && nn->next->line == nn->line)
                         continue;                          continue;
                 if (nn->prev && nn->prev->line < nn->line)                  print_text(h, "\n");
                         print_text(h, "\n");                  h->flags |= HTML_NOSPACE;
                 else if (NULL == nn->prev)  
                         print_text(h, "\n");  
         }          }
   
         return(0);          return(0);

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

CVSweb