[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.107 and 1.112

version 1.107, 2014/12/04 02:05:42 version 1.112, 2015/03/03 21:11:34
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * 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 100  static const struct htmlman mans[MAN_MAX] = {
Line 100  static const struct htmlman mans[MAN_MAX] = {
         { man_I_pre, NULL }, /* I */          { man_I_pre, NULL }, /* I */
         { man_alt_pre, NULL }, /* IR */          { man_alt_pre, NULL }, /* IR */
         { man_alt_pre, NULL }, /* RI */          { man_alt_pre, NULL }, /* RI */
         { man_ign_pre, NULL }, /* na */  
         { man_br_pre, NULL }, /* sp */          { man_br_pre, NULL }, /* sp */
         { man_literal_pre, NULL }, /* nf */          { man_literal_pre, NULL }, /* nf */
         { man_literal_pre, NULL }, /* fi */          { man_literal_pre, NULL }, /* fi */
Line 193  static void
Line 192  static void
 print_man_nodelist(MAN_ARGS)  print_man_nodelist(MAN_ARGS)
 {  {
   
         print_man_node(man, n, mh, h);          while (n != NULL) {
         if (n->next)                  print_man_node(man, n, mh, h);
                 print_man_nodelist(man, n->next, mh, h);                  n = n->next;
           }
 }  }
   
 static void  static void
Line 216  print_man_node(MAN_ARGS)
Line 216  print_man_node(MAN_ARGS)
                         print_paragraph(h);                          print_paragraph(h);
                         return;                          return;
                 }                  }
                 if (n->flags & MAN_LINE && (*n->string == ' ' ||                  if (n->flags & MAN_LINE && (*n->string == ' ' ||
                     (n->prev != NULL && mh->fl & MANH_LITERAL &&                      (n->prev != NULL && mh->fl & MANH_LITERAL &&
                      ! (h->flags & HTML_NONEWLINE))))                       ! (h->flags & HTML_NONEWLINE))))
                         print_otag(h, TAG_BR, 0, NULL);                          print_otag(h, TAG_BR, 0, NULL);
                 print_text(h, n->string);                  print_text(h, n->string);
                 return;                  return;
         case MAN_EQN:          case MAN_EQN:
                   if (n->flags & MAN_LINE)
                           putchar('\n');
                 print_eqn(h, n->eqn);                  print_eqn(h, n->eqn);
                 break;                  break;
         case MAN_TBL:          case MAN_TBL:
Line 362  man_br_pre(MAN_ARGS)
Line 364  man_br_pre(MAN_ARGS)
         if (MAN_sp == n->tok) {          if (MAN_sp == n->tok) {
                 if (NULL != (n = n->child))                  if (NULL != (n = n->child))
                         if ( ! a2roffsu(n->string, &su, SCALE_VS))                          if ( ! a2roffsu(n->string, &su, SCALE_VS))
                                 SCALE_VS_INIT(&su, atoi(n->string));                                  su.scale = 1.0;
         } else          } else
                 su.scale = 0.0;                  su.scale = 0.0;
   

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.112

CVSweb