version 1.245, 2012/11/17 00:26:33 |
version 1.260, 2014/03/30 19:47:48 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> |
|
* Copyright (c) 2013 Franco Fichtner <franco@lastsummer.de> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 100 static int termp_fl_pre(DECL_ARGS); |
|
Line 101 static int termp_fl_pre(DECL_ARGS); |
|
static int termp_fn_pre(DECL_ARGS); |
static int termp_fn_pre(DECL_ARGS); |
static int termp_fo_pre(DECL_ARGS); |
static int termp_fo_pre(DECL_ARGS); |
static int termp_ft_pre(DECL_ARGS); |
static int termp_ft_pre(DECL_ARGS); |
static int termp_igndelim_pre(DECL_ARGS); |
|
static int termp_in_pre(DECL_ARGS); |
static int termp_in_pre(DECL_ARGS); |
static int termp_it_pre(DECL_ARGS); |
static int termp_it_pre(DECL_ARGS); |
static int termp_li_pre(DECL_ARGS); |
static int termp_li_pre(DECL_ARGS); |
|
static int termp_ll_pre(DECL_ARGS); |
static int termp_lk_pre(DECL_ARGS); |
static int termp_lk_pre(DECL_ARGS); |
static int termp_nd_pre(DECL_ARGS); |
static int termp_nd_pre(DECL_ARGS); |
static int termp_nm_pre(DECL_ARGS); |
static int termp_nm_pre(DECL_ARGS); |
Line 194 static const struct termact termacts[MDOC_MAX] = { |
|
Line 195 static const struct termact termacts[MDOC_MAX] = { |
|
{ termp_quote_pre, termp_quote_post }, /* Eo */ |
{ termp_quote_pre, termp_quote_post }, /* Eo */ |
{ termp_xx_pre, NULL }, /* Fx */ |
{ termp_xx_pre, NULL }, /* Fx */ |
{ termp_bold_pre, NULL }, /* Ms */ |
{ termp_bold_pre, NULL }, /* Ms */ |
{ termp_igndelim_pre, NULL }, /* No */ |
{ NULL, NULL }, /* No */ |
{ termp_ns_pre, NULL }, /* Ns */ |
{ termp_ns_pre, NULL }, /* Ns */ |
{ termp_xx_pre, NULL }, /* Nx */ |
{ termp_xx_pre, NULL }, /* Nx */ |
{ termp_xx_pre, NULL }, /* Ox */ |
{ termp_xx_pre, NULL }, /* Ox */ |
{ NULL, NULL }, /* Pc */ |
{ NULL, NULL }, /* Pc */ |
{ termp_igndelim_pre, termp_pf_post }, /* Pf */ |
{ NULL, termp_pf_post }, /* Pf */ |
{ termp_quote_pre, termp_quote_post }, /* Po */ |
{ termp_quote_pre, termp_quote_post }, /* Po */ |
{ termp_quote_pre, termp_quote_post }, /* Pq */ |
{ termp_quote_pre, termp_quote_post }, /* Pq */ |
{ NULL, NULL }, /* Qc */ |
{ NULL, NULL }, /* Qc */ |
Line 244 static const struct termact termacts[MDOC_MAX] = { |
|
Line 245 static const struct termact termacts[MDOC_MAX] = { |
|
{ termp_sp_pre, NULL }, /* sp */ |
{ termp_sp_pre, NULL }, /* sp */ |
{ NULL, termp____post }, /* %U */ |
{ NULL, termp____post }, /* %U */ |
{ NULL, NULL }, /* Ta */ |
{ NULL, NULL }, /* Ta */ |
|
{ termp_ll_pre, NULL }, /* ll */ |
}; |
}; |
|
|
|
|
Line 307 print_mdoc_node(DECL_ARGS) |
|
Line 309 print_mdoc_node(DECL_ARGS) |
|
/* |
/* |
* Keeps only work until the end of a line. If a keep was |
* Keeps only work until the end of a line. If a keep was |
* invoked in a prior line, revert it to PREKEEP. |
* invoked in a prior line, revert it to PREKEEP. |
* |
|
* Also let SYNPRETTY sections behave as if they were wrapped |
|
* in a `Bk' block. |
|
*/ |
*/ |
|
|
if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) { |
if (TERMP_KEEP & p->flags) { |
if (n->prev && n->prev->line != n->line) { |
if (n->prev ? (n->prev->lastline != n->line) : |
|
(n->parent && n->parent->line != n->line)) { |
p->flags &= ~TERMP_KEEP; |
p->flags &= ~TERMP_KEEP; |
p->flags |= TERMP_PREKEEP; |
p->flags |= TERMP_PREKEEP; |
} else if (NULL == n->prev) { |
|
if (n->parent && n->parent->line != n->line) { |
|
p->flags &= ~TERMP_KEEP; |
|
p->flags |= TERMP_PREKEEP; |
|
} |
|
} |
} |
} |
} |
|
|
/* |
/* |
* Since SYNPRETTY sections aren't "turned off" with `Ek', |
|
* we have to intuit whether we should disable formatting. |
|
*/ |
|
|
|
if ( ! (MDOC_SYNPRETTY & n->flags) && |
|
((n->prev && MDOC_SYNPRETTY & n->prev->flags) || |
|
(n->parent && MDOC_SYNPRETTY & n->parent->flags))) |
|
p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); |
|
|
|
/* |
|
* After the keep flags have been set up, we may now |
* After the keep flags have been set up, we may now |
* produce output. Note that some pre-handlers do so. |
* produce output. Note that some pre-handlers do so. |
*/ |
*/ |
Line 401 print_mdoc_node(DECL_ARGS) |
|
Line 386 print_mdoc_node(DECL_ARGS) |
|
if (MDOC_EOS & n->flags) |
if (MDOC_EOS & n->flags) |
p->flags |= TERMP_SENTENCE; |
p->flags |= TERMP_SENTENCE; |
|
|
p->offset = offset; |
if (MDOC_ll != n->tok) { |
p->rmargin = rmargin; |
p->offset = offset; |
|
p->rmargin = rmargin; |
|
} |
} |
} |
|
|
|
|
Line 428 print_mdoc_foot(struct termp *p, const void *arg) |
|
Line 415 print_mdoc_foot(struct termp *p, const void *arg) |
|
p->offset = 0; |
p->offset = 0; |
p->rmargin = (p->maxrmargin - |
p->rmargin = (p->maxrmargin - |
term_strlen(p, meta->date) + term_len(p, 1)) / 2; |
term_strlen(p, meta->date) + term_len(p, 1)) / 2; |
|
p->trailspace = 1; |
p->flags |= TERMP_NOSPACE | TERMP_NOBREAK; |
p->flags |= TERMP_NOSPACE | TERMP_NOBREAK; |
|
|
term_word(p, meta->os); |
term_word(p, meta->os); |
Line 442 print_mdoc_foot(struct termp *p, const void *arg) |
|
Line 430 print_mdoc_foot(struct termp *p, const void *arg) |
|
|
|
p->offset = p->rmargin; |
p->offset = p->rmargin; |
p->rmargin = p->maxrmargin; |
p->rmargin = p->maxrmargin; |
|
p->trailspace = 0; |
p->flags &= ~TERMP_NOBREAK; |
p->flags &= ~TERMP_NOBREAK; |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
|
|
Line 493 print_mdoc_head(struct termp *p, const void *arg) |
|
Line 482 print_mdoc_head(struct termp *p, const void *arg) |
|
titlen = term_strlen(p, title); |
titlen = term_strlen(p, title); |
|
|
p->flags |= TERMP_NOBREAK | TERMP_NOSPACE; |
p->flags |= TERMP_NOBREAK | TERMP_NOSPACE; |
|
p->trailspace = 1; |
p->offset = 0; |
p->offset = 0; |
p->rmargin = 2 * (titlen+1) + buflen < p->maxrmargin ? |
p->rmargin = 2 * (titlen+1) + buflen < p->maxrmargin ? |
(p->maxrmargin - |
(p->maxrmargin - |
Line 511 print_mdoc_head(struct termp *p, const void *arg) |
|
Line 501 print_mdoc_head(struct termp *p, const void *arg) |
|
term_flushln(p); |
term_flushln(p); |
|
|
p->flags &= ~TERMP_NOBREAK; |
p->flags &= ~TERMP_NOBREAK; |
|
p->trailspace = 0; |
if (p->rmargin + titlen <= p->maxrmargin) { |
if (p->rmargin + titlen <= p->maxrmargin) { |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
p->offset = p->rmargin; |
p->offset = p->rmargin; |
Line 628 print_bvspace(struct termp *p, |
|
Line 619 print_bvspace(struct termp *p, |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |
|
termp_ll_pre(DECL_ARGS) |
|
{ |
|
|
|
(*p->setwidth)(p, n->nchild ? a2width(p, n->child->string) : 0); |
|
return(0); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static int |
termp_it_pre(DECL_ARGS) |
termp_it_pre(DECL_ARGS) |
{ |
{ |
const struct mdoc_node *bl, *nn; |
const struct mdoc_node *bl, *nn; |
Line 798 termp_it_pre(DECL_ARGS) |
|
Line 799 termp_it_pre(DECL_ARGS) |
|
case (LIST_dash): |
case (LIST_dash): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (LIST_hyphen): |
case (LIST_hyphen): |
if (MDOC_HEAD == n->type) |
if (MDOC_HEAD != n->type) |
p->flags |= TERMP_NOBREAK; |
break; |
|
p->flags |= TERMP_NOBREAK; |
|
p->trailspace = 1; |
break; |
break; |
case (LIST_hang): |
case (LIST_hang): |
if (MDOC_HEAD == n->type) |
if (MDOC_HEAD != n->type) |
p->flags |= TERMP_NOBREAK; |
|
else |
|
break; |
break; |
|
|
/* |
/* |
Line 816 termp_it_pre(DECL_ARGS) |
|
Line 817 termp_it_pre(DECL_ARGS) |
|
if (n->next->child && |
if (n->next->child && |
(MDOC_Bl == n->next->child->tok || |
(MDOC_Bl == n->next->child->tok || |
MDOC_Bd == n->next->child->tok)) |
MDOC_Bd == n->next->child->tok)) |
p->flags &= ~TERMP_NOBREAK; |
break; |
else |
|
p->flags |= TERMP_HANG; |
p->flags |= TERMP_NOBREAK | TERMP_HANG; |
|
p->trailspace = 1; |
break; |
break; |
case (LIST_tag): |
case (LIST_tag): |
if (MDOC_HEAD == n->type) |
|
p->flags |= TERMP_NOBREAK | TERMP_TWOSPACE; |
|
|
|
if (MDOC_HEAD != n->type) |
if (MDOC_HEAD != n->type) |
break; |
break; |
|
|
|
p->flags |= TERMP_NOBREAK; |
|
p->trailspace = 2; |
|
|
if (NULL == n->next || NULL == n->next->child) |
if (NULL == n->next || NULL == n->next->child) |
p->flags |= TERMP_DANGLE; |
p->flags |= TERMP_DANGLE; |
break; |
break; |
Line 833 termp_it_pre(DECL_ARGS) |
|
Line 836 termp_it_pre(DECL_ARGS) |
|
if (MDOC_HEAD == n->type) |
if (MDOC_HEAD == n->type) |
break; |
break; |
|
|
if (NULL == n->next) |
if (NULL == n->next) { |
p->flags &= ~TERMP_NOBREAK; |
p->flags &= ~TERMP_NOBREAK; |
else |
p->trailspace = 0; |
|
} else { |
p->flags |= TERMP_NOBREAK; |
p->flags |= TERMP_NOBREAK; |
|
p->trailspace = 1; |
|
} |
|
|
break; |
break; |
case (LIST_diag): |
case (LIST_diag): |
if (MDOC_HEAD == n->type) |
if (MDOC_HEAD != n->type) |
p->flags |= TERMP_NOBREAK; |
break; |
|
p->flags |= TERMP_NOBREAK; |
|
p->trailspace = 1; |
break; |
break; |
default: |
default: |
break; |
break; |
Line 879 termp_it_pre(DECL_ARGS) |
|
Line 887 termp_it_pre(DECL_ARGS) |
|
assert(width); |
assert(width); |
if (MDOC_HEAD == n->type) |
if (MDOC_HEAD == n->type) |
p->rmargin = p->offset + width; |
p->rmargin = p->offset + width; |
else |
else { |
p->offset += width; |
p->offset += width; |
|
if (p->rmargin < p->offset) |
|
p->rmargin = p->offset; |
|
} |
break; |
break; |
case (LIST_column): |
case (LIST_column): |
assert(width); |
assert(width); |
Line 993 termp_it_post(DECL_ARGS) |
|
Line 1004 termp_it_post(DECL_ARGS) |
|
|
|
p->flags &= ~TERMP_DANGLE; |
p->flags &= ~TERMP_DANGLE; |
p->flags &= ~TERMP_NOBREAK; |
p->flags &= ~TERMP_NOBREAK; |
p->flags &= ~TERMP_TWOSPACE; |
|
p->flags &= ~TERMP_HANG; |
p->flags &= ~TERMP_HANG; |
|
p->trailspace = 0; |
} |
} |
|
|
|
|
|
|
termp_nm_pre(DECL_ARGS) |
termp_nm_pre(DECL_ARGS) |
{ |
{ |
|
|
if (MDOC_BLOCK == n->type) |
if (MDOC_BLOCK == n->type) { |
|
p->flags |= TERMP_PREKEEP; |
return(1); |
return(1); |
|
} |
|
|
if (MDOC_BODY == n->type) { |
if (MDOC_BODY == n->type) { |
if (NULL == n->child) |
if (NULL == n->child) |
Line 1027 termp_nm_pre(DECL_ARGS) |
|
Line 1040 termp_nm_pre(DECL_ARGS) |
|
|
|
if (MDOC_HEAD == n->type && n->next->child) { |
if (MDOC_HEAD == n->type && n->next->child) { |
p->flags |= TERMP_NOSPACE | TERMP_NOBREAK; |
p->flags |= TERMP_NOSPACE | TERMP_NOBREAK; |
|
p->trailspace = 1; |
p->rmargin = p->offset + term_len(p, 1); |
p->rmargin = p->offset + term_len(p, 1); |
if (NULL == n->child) { |
if (NULL == n->child) { |
p->rmargin += term_strlen(p, meta->name); |
p->rmargin += term_strlen(p, meta->name); |
|
|
termp_nm_post(DECL_ARGS) |
termp_nm_post(DECL_ARGS) |
{ |
{ |
|
|
if (MDOC_HEAD == n->type && n->next->child) { |
if (MDOC_BLOCK == n->type) { |
|
p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); |
|
} else if (MDOC_HEAD == n->type && n->next->child) { |
term_flushln(p); |
term_flushln(p); |
p->flags &= ~(TERMP_NOBREAK | TERMP_HANG); |
p->flags &= ~(TERMP_NOBREAK | TERMP_HANG); |
|
p->trailspace = 0; |
} else if (MDOC_BODY == n->type && n->child) |
} else if (MDOC_BODY == n->type && n->child) |
term_flushln(p); |
term_flushln(p); |
} |
} |
Line 1529 termp_ft_pre(DECL_ARGS) |
|
Line 1546 termp_ft_pre(DECL_ARGS) |
|
static int |
static int |
termp_fn_pre(DECL_ARGS) |
termp_fn_pre(DECL_ARGS) |
{ |
{ |
|
size_t rmargin = 0; |
int pretty; |
int pretty; |
|
|
pretty = MDOC_SYNPRETTY & n->flags; |
pretty = MDOC_SYNPRETTY & n->flags; |
Line 1538 termp_fn_pre(DECL_ARGS) |
|
Line 1556 termp_fn_pre(DECL_ARGS) |
|
if (NULL == (n = n->child)) |
if (NULL == (n = n->child)) |
return(0); |
return(0); |
|
|
|
if (pretty) { |
|
rmargin = p->rmargin; |
|
p->rmargin = p->offset + term_len(p, 4); |
|
p->flags |= TERMP_NOBREAK | TERMP_HANG; |
|
} |
|
|
assert(MDOC_TEXT == n->type); |
assert(MDOC_TEXT == n->type); |
term_fontpush(p, TERMFONT_BOLD); |
term_fontpush(p, TERMFONT_BOLD); |
term_word(p, n->string); |
term_word(p, n->string); |
term_fontpop(p); |
term_fontpop(p); |
|
|
|
if (pretty) { |
|
term_flushln(p); |
|
p->flags &= ~(TERMP_NOBREAK | TERMP_HANG); |
|
p->offset = p->rmargin; |
|
p->rmargin = rmargin; |
|
} |
|
|
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, "("); |
term_word(p, "("); |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
Line 1550 termp_fn_pre(DECL_ARGS) |
|
Line 1581 termp_fn_pre(DECL_ARGS) |
|
for (n = n->next; n; n = n->next) { |
for (n = n->next; n; n = n->next) { |
assert(MDOC_TEXT == n->type); |
assert(MDOC_TEXT == n->type); |
term_fontpush(p, TERMFONT_UNDER); |
term_fontpush(p, TERMFONT_UNDER); |
|
if (pretty) |
|
p->flags |= TERMP_NBRWORD; |
term_word(p, n->string); |
term_word(p, n->string); |
term_fontpop(p); |
term_fontpop(p); |
|
|
Line 1565 termp_fn_pre(DECL_ARGS) |
|
Line 1598 termp_fn_pre(DECL_ARGS) |
|
if (pretty) { |
if (pretty) { |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ";"); |
term_word(p, ";"); |
|
term_flushln(p); |
} |
} |
|
|
return(0); |
return(0); |
Line 1584 termp_fa_pre(DECL_ARGS) |
|
Line 1618 termp_fa_pre(DECL_ARGS) |
|
|
|
for (nn = n->child; nn; nn = nn->next) { |
for (nn = n->child; nn; nn = nn->next) { |
term_fontpush(p, TERMFONT_UNDER); |
term_fontpush(p, TERMFONT_UNDER); |
|
p->flags |= TERMP_NBRWORD; |
term_word(p, nn->string); |
term_word(p, nn->string); |
term_fontpop(p); |
term_fontpop(p); |
|
|
if (nn->next) { |
if (nn->next || (n->next && n->next->tok == MDOC_Fa)) { |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ","); |
term_word(p, ","); |
} |
} |
} |
} |
|
|
if (n->child && n->next && n->next->tok == MDOC_Fa) { |
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, ","); |
|
} |
|
|
|
return(0); |
return(0); |
} |
} |
|
|
Line 1756 termp_xx_pre(DECL_ARGS) |
|
Line 1786 termp_xx_pre(DECL_ARGS) |
|
pp = "UNIX"; |
pp = "UNIX"; |
break; |
break; |
default: |
default: |
break; |
abort(); |
|
/* NOTREACHED */ |
} |
} |
|
|
term_word(p, pp); |
term_word(p, pp); |
Line 1771 termp_xx_pre(DECL_ARGS) |
|
Line 1802 termp_xx_pre(DECL_ARGS) |
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
|
termp_igndelim_pre(DECL_ARGS) |
|
{ |
|
|
|
p->flags |= TERMP_IGNDELIM; |
|
return(1); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static void |
static void |
termp_pf_post(DECL_ARGS) |
termp_pf_post(DECL_ARGS) |
{ |
{ |
Line 1928 termp_quote_pre(DECL_ARGS) |
|
Line 1949 termp_quote_pre(DECL_ARGS) |
|
case (MDOC_Do): |
case (MDOC_Do): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MDOC_Dq): |
case (MDOC_Dq): |
term_word(p, "``"); |
term_word(p, "\\(lq"); |
break; |
break; |
case (MDOC_Eo): |
case (MDOC_Eo): |
break; |
break; |
Line 1949 termp_quote_pre(DECL_ARGS) |
|
Line 1970 termp_quote_pre(DECL_ARGS) |
|
case (MDOC_So): |
case (MDOC_So): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MDOC_Sq): |
case (MDOC_Sq): |
term_word(p, "`"); |
term_word(p, "\\(oq"); |
break; |
break; |
default: |
default: |
abort(); |
abort(); |
Line 1994 termp_quote_post(DECL_ARGS) |
|
Line 2015 termp_quote_post(DECL_ARGS) |
|
case (MDOC_Do): |
case (MDOC_Do): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MDOC_Dq): |
case (MDOC_Dq): |
term_word(p, "''"); |
term_word(p, "\\(rq"); |
break; |
break; |
case (MDOC_Eo): |
case (MDOC_Eo): |
break; |
break; |
Line 2015 termp_quote_post(DECL_ARGS) |
|
Line 2036 termp_quote_post(DECL_ARGS) |
|
case (MDOC_So): |
case (MDOC_So): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MDOC_Sq): |
case (MDOC_Sq): |
term_word(p, "'"); |
term_word(p, "\\(cq"); |
break; |
break; |
default: |
default: |
abort(); |
abort(); |
Line 2028 termp_quote_post(DECL_ARGS) |
|
Line 2049 termp_quote_post(DECL_ARGS) |
|
static int |
static int |
termp_fo_pre(DECL_ARGS) |
termp_fo_pre(DECL_ARGS) |
{ |
{ |
|
size_t rmargin = 0; |
|
int pretty; |
|
|
|
pretty = MDOC_SYNPRETTY & n->flags; |
|
|
if (MDOC_BLOCK == n->type) { |
if (MDOC_BLOCK == n->type) { |
synopsis_pre(p, n); |
synopsis_pre(p, n); |
return(1); |
return(1); |
} else if (MDOC_BODY == n->type) { |
} else if (MDOC_BODY == n->type) { |
|
if (pretty) { |
|
rmargin = p->rmargin; |
|
p->rmargin = p->offset + term_len(p, 4); |
|
p->flags |= TERMP_NOBREAK | TERMP_HANG; |
|
} |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, "("); |
term_word(p, "("); |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
|
if (pretty) { |
|
term_flushln(p); |
|
p->flags &= ~(TERMP_NOBREAK | TERMP_HANG); |
|
p->offset = p->rmargin; |
|
p->rmargin = rmargin; |
|
} |
return(1); |
return(1); |
} |
} |
|
|
if (NULL == n->child) |
if (NULL == n->child) |
return(0); |
return(0); |
Line 2065 termp_fo_post(DECL_ARGS) |
|
Line 2101 termp_fo_post(DECL_ARGS) |
|
if (MDOC_SYNPRETTY & n->flags) { |
if (MDOC_SYNPRETTY & n->flags) { |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ";"); |
term_word(p, ";"); |
|
term_flushln(p); |
} |
} |
} |
} |
|
|