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

Diff for /mandoc/mdoc_man.c between version 1.55 and 1.56

version 1.55, 2013/12/24 22:08:50 version 1.56, 2013/12/25 00:39:31
Line 256  static int  outflags;
Line 256  static int  outflags;
 #define MMAN_An_split   (1 << 9)  /* author mode is "split" */  #define MMAN_An_split   (1 << 9)  /* author mode is "split" */
 #define MMAN_An_nosplit (1 << 10) /* author mode is "nosplit" */  #define MMAN_An_nosplit (1 << 10) /* author mode is "nosplit" */
 #define MMAN_PD         (1 << 11) /* inter-paragraph spacing disabled */  #define MMAN_PD         (1 << 11) /* inter-paragraph spacing disabled */
   #define MMAN_nbrword    (1 << 12) /* do not break the next word */
   
 #define BL_STACK_MAX    32  #define BL_STACK_MAX    32
   
Line 364  print_word(const char *s)
Line 365  print_word(const char *s)
                 case (ASCII_HYPH):                  case (ASCII_HYPH):
                         putchar('-');                          putchar('-');
                         break;                          break;
                   case (' '):
                           if (MMAN_nbrword & outflags) {
                                   printf("\\ ");
                                   break;
                           }
                           /* FALLTHROUGH */
                 default:                  default:
                         putchar((unsigned char)*s);                          putchar((unsigned char)*s);
                         break;                          break;
Line 371  print_word(const char *s)
Line 378  print_word(const char *s)
                 if (TPremain)                  if (TPremain)
                         TPremain--;                          TPremain--;
         }          }
           outflags &= ~MMAN_nbrword;
 }  }
   
 static void  static void
Line 1028  pre_fa(DECL_ARGS)
Line 1036  pre_fa(DECL_ARGS)
   
         while (NULL != n) {          while (NULL != n) {
                 font_push('I');                  font_push('I');
                   if (MDOC_SYNPRETTY & n->flags)
                           outflags |= MMAN_nbrword;
                 print_node(meta, n);                  print_node(meta, n);
                 font_pop();                  font_pop();
                 if (NULL != (n = n->next))                  if (NULL != (n = n->next))

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

CVSweb