[BACK]Return to mdoc_term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_term.c between version 1.51 and 1.52

version 1.51, 2009/08/22 18:10:02 version 1.52, 2009/08/22 18:40:00
Line 1395 
Line 1395 
 static int  static int
 termp_sh_pre(DECL_ARGS)  termp_sh_pre(DECL_ARGS)
 {  {
           /*
            * XXX: undocumented: using two `Sh' macros in sequence has no
            * vspace between calls, only a newline.
            */
         switch (node->type) {          switch (node->type) {
         case (MDOC_HEAD):          case (MDOC_BLOCK):
                   if (node->prev && MDOC_Sh == node->prev->tok)
                           if (NULL == node->prev->body->child)
                                   break;
                 term_vspace(p);                  term_vspace(p);
                   break;
           case (MDOC_HEAD):
                 pair->flag |= ttypes[TTYPE_SECTION];                  pair->flag |= ttypes[TTYPE_SECTION];
                 break;                  break;
         case (MDOC_BODY):          case (MDOC_BODY):

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52