version 1.43, 2012/11/18 18:02:23 |
version 1.44, 2012/11/18 19:34:19 |
Line 253 static int outflags; |
|
Line 253 static int outflags; |
|
#define MMAN_Bk (1 << 7) /* word keep mode */ |
#define MMAN_Bk (1 << 7) /* word keep mode */ |
#define MMAN_An_split (1 << 8) /* author mode is "split" */ |
#define MMAN_An_split (1 << 8) /* author mode is "split" */ |
#define MMAN_An_nosplit (1 << 9) /* author mode is "nosplit" */ |
#define MMAN_An_nosplit (1 << 9) /* author mode is "nosplit" */ |
|
#define MMAN_PD (1 << 10) /* inter-paragraph spacing disabled */ |
|
|
#define BL_STACK_MAX 32 |
#define BL_STACK_MAX 32 |
|
|
Line 304 print_word(const char *s) |
|
Line 305 print_word(const char *s) |
|
* If we need a newline, print it now and start afresh. |
* If we need a newline, print it now and start afresh. |
*/ |
*/ |
if (MMAN_PP & outflags) { |
if (MMAN_PP & outflags) { |
if ( ! (MMAN_sp & outflags)) |
if (MMAN_sp & outflags) { |
printf("\n.sp -1v"); |
if (MMAN_PD & outflags) { |
|
printf("\n.PD"); |
|
outflags &= ~MMAN_PD; |
|
} |
|
} else if ( ! (MMAN_PD & outflags)) { |
|
printf("\n.PD 0"); |
|
outflags |= MMAN_PD; |
|
} |
printf("\n.PP\n"); |
printf("\n.PP\n"); |
} else if (MMAN_sp & outflags) |
} else if (MMAN_sp & outflags) |
printf("\n.sp\n"); |
printf("\n.sp\n"); |
Line 379 print_block(const char *s, int newflags) |
|
Line 387 print_block(const char *s, int newflags) |
|
{ |
{ |
|
|
outflags &= ~MMAN_PP; |
outflags &= ~MMAN_PP; |
if (MMAN_sp & outflags) |
if (MMAN_sp & outflags) { |
outflags &= ~(MMAN_sp | MMAN_br); |
outflags &= ~(MMAN_sp | MMAN_br); |
else |
if (MMAN_PD & outflags) { |
print_line(".sp -1v", 0); |
print_line(".PD", 0); |
|
outflags &= ~MMAN_PD; |
|
} |
|
} else if (! (MMAN_PD & outflags)) { |
|
print_line(".PD 0", 0); |
|
outflags |= MMAN_PD; |
|
} |
outflags |= MMAN_nl; |
outflags |= MMAN_nl; |
print_word(s); |
print_word(s); |
outflags |= newflags; |
outflags |= newflags; |