version 1.128, 2018/08/18 02:08:27 |
version 1.130, 2018/08/18 15:13:32 |
Line 71 static const struct man_macro man_macros[MAN_MAX - MAN |
|
Line 71 static const struct man_macro man_macros[MAN_MAX - MAN |
|
{ in_line_eoln, MAN_NSCOPED }, /* PD */ |
{ in_line_eoln, MAN_NSCOPED }, /* PD */ |
{ in_line_eoln, 0 }, /* AT */ |
{ in_line_eoln, 0 }, /* AT */ |
{ in_line_eoln, MAN_NSCOPED }, /* in */ |
{ in_line_eoln, MAN_NSCOPED }, /* in */ |
{ blk_exp, MAN_BSCOPE }, /* SY */ |
{ blk_imp, MAN_BSCOPE }, /* SY */ |
{ blk_close, MAN_BSCOPE }, /* YS */ |
{ blk_close, MAN_BSCOPE }, /* YS */ |
{ in_line_eoln, 0 }, /* OP */ |
{ in_line_eoln, 0 }, /* OP */ |
{ in_line_eoln, MAN_BSCOPE }, /* EX */ |
{ in_line_eoln, MAN_BSCOPE }, /* EX */ |
Line 262 blk_close(MACRO_PROT_ARGS) |
|
Line 262 blk_close(MACRO_PROT_ARGS) |
|
if (buf[*pos] != '\0') { |
if (buf[*pos] != '\0') { |
roff_word_alloc(man, line, ppos, buf + *pos); |
roff_word_alloc(man, line, ppos, buf + *pos); |
man->last->flags |= NODE_DELIMC; |
man->last->flags |= NODE_DELIMC; |
|
if (mandoc_eos(man->last->string, strlen(man->last->string))) |
|
man->last->flags |= NODE_EOS; |
} |
} |
|
|
/* Move a trailing paragraph behind the block. */ |
/* Move a trailing paragraph behind the block. */ |
Line 269 blk_close(MACRO_PROT_ARGS) |
|
Line 271 blk_close(MACRO_PROT_ARGS) |
|
if (ctok == MAN_LP || ctok == MAN_PP || ctok == MAN_P) { |
if (ctok == MAN_LP || ctok == MAN_PP || ctok == MAN_P) { |
*pos = strlen(buf); |
*pos = strlen(buf); |
blk_imp(man, ctok, cline, cpos, pos, buf); |
blk_imp(man, ctok, cline, cpos, pos, buf); |
|
} |
|
|
|
/* Synopsis blocks need an explicit end marker for spacing. */ |
|
|
|
if (tok == MAN_YS && man->last == nn) { |
|
roff_elem_alloc(man, line, ppos, tok); |
|
man_unscope(man, man->last); |
} |
} |
} |
} |
|
|