version 1.129, 2014/04/20 16:46:04 |
version 1.131, 2014/07/06 19:09:00 |
Line 447 man_ptext(struct man *man, int line, char *buf, int of |
|
Line 447 man_ptext(struct man *man, int line, char *buf, int of |
|
|
|
if (' ' == buf[i - 1] || '\t' == buf[i - 1]) { |
if (' ' == buf[i - 1] || '\t' == buf[i - 1]) { |
if (i > 1 && '\\' != buf[i - 2]) |
if (i > 1 && '\\' != buf[i - 2]) |
man_pmsg(man, line, i - 1, MANDOCERR_EOLNSPACE); |
mandoc_msg(MANDOCERR_SPACE_EOL, man->parse, |
|
line, i - 1, NULL); |
|
|
for (--i; i && ' ' == buf[i]; i--) |
for (--i; i && ' ' == buf[i]; i--) |
/* Spin back to non-space. */ ; |
/* Spin back to non-space. */ ; |
Line 483 man_pmacro(struct man *man, int ln, char *buf, int off |
|
Line 484 man_pmacro(struct man *man, int ln, char *buf, int off |
|
struct man_node *n; |
struct man_node *n; |
|
|
if ('"' == buf[offs]) { |
if ('"' == buf[offs]) { |
man_pmsg(man, ln, offs, MANDOCERR_BADCOMMENT); |
mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse, |
|
ln, offs, NULL); |
return(1); |
return(1); |
} else if ('\0' == buf[offs]) |
} else if ('\0' == buf[offs]) |
return(1); |
return(1); |
Line 521 man_pmacro(struct man *man, int ln, char *buf, int off |
|
Line 523 man_pmacro(struct man *man, int ln, char *buf, int off |
|
*/ |
*/ |
|
|
if ('\0' == buf[offs] && ' ' == buf[offs - 1]) |
if ('\0' == buf[offs] && ' ' == buf[offs - 1]) |
man_pmsg(man, ln, offs - 1, MANDOCERR_EOLNSPACE); |
mandoc_msg(MANDOCERR_SPACE_EOL, man->parse, |
|
ln, offs - 1, NULL); |
|
|
/* |
/* |
* Remove prior ELINE macro, as it's being clobbered by a new |
* Remove prior ELINE macro, as it's being clobbered by a new |
Line 595 man_pmacro(struct man *man, int ln, char *buf, int off |
|
Line 598 man_pmacro(struct man *man, int ln, char *buf, int off |
|
|
|
/* In quick mode (for mandocdb), abort after the NAME section. */ |
/* In quick mode (for mandocdb), abort after the NAME section. */ |
|
|
if (man->quick && MAN_SH == tok && |
if (man->quick && MAN_SH == tok) { |
strcmp(man->last->prev->child->string, "NAME")) |
n = man->last; |
return(2); |
if (MAN_BODY == n->type && |
|
strcmp(n->prev->child->string, "NAME")) |
|
return(2); |
|
} |
|
|
/* |
/* |
* We weren't in a block-line scope when entering the |
* We weren't in a block-line scope when entering the |