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

Diff for /mandoc/mdoc_term.c between version 1.292 and 1.293

version 1.292, 2014/11/21 01:52:53 version 1.293, 2014/11/25 20:00:01
Line 1374  static int
Line 1374  static int
 termp_sh_pre(DECL_ARGS)  termp_sh_pre(DECL_ARGS)
 {  {
   
         /* No vspace between consecutive `Sh' calls. */  
   
         switch (n->type) {          switch (n->type) {
         case MDOC_BLOCK:          case MDOC_BLOCK:
                 if (n->prev && MDOC_Sh == n->prev->tok)                  /*
                         if (NULL == n->prev->body->child)                   * Vertical space before sections, except
                                 break;                   * when the previous section was empty.
                 term_vspace(p);                   */
                   if (n->prev == NULL ||
                       MDOC_Sh != n->prev->tok ||
                       (n->prev->body != NULL &&
                        n->prev->body->child != NULL))
                           term_vspace(p);
                 break;                  break;
         case MDOC_HEAD:          case MDOC_HEAD:
                 term_fontpush(p, TERMFONT_BOLD);                  term_fontpush(p, TERMFONT_BOLD);

Legend:
Removed from v.1.292  
changed lines
  Added in v.1.293

CVSweb