version 1.44, 2012/11/18 19:34:19 |
version 1.45, 2012/11/19 02:08:33 |
Line 334 print_word(const char *s) |
|
Line 334 print_word(const char *s) |
|
*/ |
*/ |
if (MMAN_spc_force & outflags || '\0' == s[0] || |
if (MMAN_spc_force & outflags || '\0' == s[0] || |
NULL == strchr(".,:;)]?!", s[0]) || '\0' != s[1]) { |
NULL == strchr(".,:;)]?!", s[0]) || '\0' != s[1]) { |
if (MMAN_Bk & outflags) { |
if (MMAN_Bk & outflags) |
putchar('\\'); |
putchar('\\'); |
putchar('~'); |
putchar(' '); |
} else |
|
putchar(' '); |
|
if (TPremain) |
if (TPremain) |
TPremain--; |
TPremain--; |
} |
} |
Line 358 print_word(const char *s) |
|
Line 356 print_word(const char *s) |
|
for ( ; *s; s++) { |
for ( ; *s; s++) { |
switch (*s) { |
switch (*s) { |
case (ASCII_NBRSP): |
case (ASCII_NBRSP): |
printf("\\~"); |
printf("\\ "); |
break; |
break; |
case (ASCII_HYPH): |
case (ASCII_HYPH): |
putchar('-'); |
putchar('-'); |
Line 535 man_mdoc(void *arg, const struct mdoc *mdoc) |
|
Line 533 man_mdoc(void *arg, const struct mdoc *mdoc) |
|
meta = mdoc_meta(mdoc); |
meta = mdoc_meta(mdoc); |
n = mdoc_node(mdoc); |
n = mdoc_node(mdoc); |
|
|
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"", |
printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", |
meta->title, meta->msec, meta->date, |
meta->title, meta->msec, meta->date, |
meta->os, meta->vol); |
meta->os, meta->vol); |
|
|
|
/* Disable hyphenation and if nroff, disable justification. */ |
|
printf(".nh\n.if n .ad l"); |
|
|
outflags = MMAN_nl | MMAN_Sm; |
outflags = MMAN_nl | MMAN_Sm; |
if (0 == fontqueue.size) { |
if (0 == fontqueue.size) { |
fontqueue.size = 8; |
fontqueue.size = 8; |
Line 1053 pre_fl(DECL_ARGS) |
|
Line 1054 pre_fl(DECL_ARGS) |
|
{ |
{ |
|
|
font_push('B'); |
font_push('B'); |
print_word("-"); |
print_word("\\-"); |
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
return(1); |
return(1); |
} |
} |
Line 1531 pre_ux(DECL_ARGS) |
|
Line 1532 pre_ux(DECL_ARGS) |
|
if (NULL == n->child) |
if (NULL == n->child) |
return(0); |
return(0); |
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
print_word("\\~"); |
print_word("\\ "); |
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
return(1); |
return(1); |
} |
} |