[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.288 and 1.289

version 1.288, 2014/10/30 20:10:02 version 1.289, 2014/11/10 21:56:43
Line 572  print_bvspace(struct termp *p,
Line 572  print_bvspace(struct termp *p,
   
         /* Do not vspace directly after Ss/Sh. */          /* Do not vspace directly after Ss/Sh. */
   
         for (nn = n; nn; nn = nn->parent) {          nn = n;
                 if (MDOC_BLOCK != nn->type)          while (nn->prev == NULL) {
                         continue;                  do {
                 if (MDOC_Ss == nn->tok)                          nn = nn->parent;
                           if (nn->type == MDOC_ROOT)
                                   return;
                   } while (nn->type != MDOC_BLOCK);
                   if (nn->tok == MDOC_Sh || nn->tok == MDOC_Ss)
                         return;                          return;
                 if (MDOC_Sh == nn->tok)                  if (nn->tok == MDOC_It &&
                         return;                      nn->parent->parent->norm->Bl.type != LIST_item)
                 if (NULL == nn->prev)                          break;
                         continue;  
                 break;  
         }          }
   
         /* A `-column' does not assert vspace within the list. */          /* A `-column' does not assert vspace within the list. */

Legend:
Removed from v.1.288  
changed lines
  Added in v.1.289

CVSweb