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

Diff for /mandoc/term.c between version 1.33 and 1.34

version 1.33, 2009/03/01 23:27:14 version 1.34, 2009/03/02 12:09:32
Line 25 
Line 25 
   
 #include "term.h"  #include "term.h"
   
 #define INDENT            6  
   
 /*  /*
  * Performs actions on nodes of the abstract syntax tree.  Both pre- and   * Performs actions on nodes of the abstract syntax tree.  Both pre- and
  * post-fix operations are defined here.   * post-fix operations are defined here.
Line 934  static int
Line 932  static int
 termp_ft_pre(DECL_ARGS)  termp_ft_pre(DECL_ARGS)
 {  {
   
           if (SEC_SYNOPSIS == node->sec)
                   if (node->prev && MDOC_Fo == node->prev->tok)
                           vspace(p);
         TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_FUNC_TYPE]);          TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_FUNC_TYPE]);
         return(1);          return(1);
 }  }
Line 944  static void
Line 945  static void
 termp_ft_post(DECL_ARGS)  termp_ft_post(DECL_ARGS)
 {  {
   
         if (node->sec == SEC_SYNOPSIS)          if (SEC_SYNOPSIS == node->sec)
                 newln(p);                  newln(p);
 }  }
   
Line 1141  static void
Line 1142  static void
 termp_bx_post(DECL_ARGS)  termp_bx_post(DECL_ARGS)
 {  {
   
         p->flags |= TERMP_NOSPACE;          if (node->child)
                   p->flags |= TERMP_NOSPACE;
         word(p, "BSD");          word(p, "BSD");
 }  }
   

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

CVSweb