version 1.272, 2018/12/30 00:49:55 |
version 1.274, 2018/12/31 07:46:07 |
Line 210 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
Line 210 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
* Strip trailing tabs in literal context only; |
* Strip trailing tabs in literal context only; |
* outside, they affect the next line. |
* outside, they affect the next line. |
*/ |
*/ |
if (MDOC_LITERAL & mdoc->flags) |
if (mdoc->flags & ROFF_NOFILL) |
continue; |
continue; |
break; |
break; |
case '\\': |
case '\\': |
Line 235 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
Line 235 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
* but add a single vertical space elsewhere. |
* but add a single vertical space elsewhere. |
*/ |
*/ |
|
|
if (buf[offs] == '\0' && ! (mdoc->flags & MDOC_LITERAL)) { |
if (buf[offs] == '\0' && (mdoc->flags & ROFF_NOFILL) == 0) { |
switch (mdoc->last->type) { |
switch (mdoc->last->type) { |
case ROFFT_TEXT: |
case ROFFT_TEXT: |
sp = mdoc->last->string; |
sp = mdoc->last->string; |
Line 260 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
Line 260 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, |
|
|
|
roff_word_alloc(mdoc, line, offs, buf+offs); |
roff_word_alloc(mdoc, line, offs, buf+offs); |
|
|
if (mdoc->flags & MDOC_LITERAL) |
if (mdoc->flags & ROFF_NOFILL) |
return 1; |
return 1; |
|
|
/* |
/* |
Line 427 mdoc_isdelim(const char *p) |
|
Line 427 mdoc_isdelim(const char *p) |
|
return DELIM_MIDDLE; |
return DELIM_MIDDLE; |
|
|
return DELIM_NONE; |
return DELIM_NONE; |
} |
|
|
|
void |
|
mdoc_validate(struct roff_man *mdoc) |
|
{ |
|
|
|
mdoc->last = mdoc->meta.first; |
|
mdoc_node_validate(mdoc); |
|
mdoc_state_reset(mdoc); |
|
} |
} |