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

Diff for /mandoc/man_term.c between version 1.53 and 1.54

version 1.53, 2009/11/12 08:00:21 version 1.54, 2009/11/12 08:21:05
Line 783  post_RS(DECL_ARGS)
Line 783  post_RS(DECL_ARGS)
 static void  static void
 print_man_node(DECL_ARGS)  print_man_node(DECL_ARGS)
 {  {
         int              c, sz;          int              c;
   
         c = 1;          c = 1;
   
Line 793  print_man_node(DECL_ARGS)
Line 793  print_man_node(DECL_ARGS)
                         term_vspace(p);                          term_vspace(p);
                         break;                          break;
                 }                  }
                 /*  
                  * Note!  This is hacky.  Here, we recognise the `\c'  
                  * escape embedded in so many -man pages.  It's supposed  
                  * to remove the subsequent space, so we mark NOSPACE if  
                  * it's encountered in the string.  
                  */  
                 sz = (int)strlen(n->string);  
                 term_word(p, n->string);                  term_word(p, n->string);
                 if (sz >= 2 && n->string[sz - 1] == 'c' &&  
                                 n->string[sz - 2] == '\\')  
                         p->flags |= TERMP_NOSPACE;  
   
                 /* FIXME: this means that macro lines are munged!  */                  /* FIXME: this means that macro lines are munged!  */
   

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

CVSweb