diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-10 08:05:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-10 08:05:30 +0000 |
commit | 44bb345d393482ec2f7e3ae9fa666129767f0d6f (patch) | |
tree | ef16d9a1aff8aff251fa12885bcc4691ac71af5d /demandoc.c | |
parent | 1874040926dffdcbabb70003b9c49ea82d64a5b7 (diff) | |
download | mandoc-44bb345d393482ec2f7e3ae9fa666129767f0d6f.tar.gz |
trim trailing white space, no code change;
from Svyatoslav Mishyn <juef at openmailboxd dot org>, Crux Linux
Diffstat (limited to 'demandoc.c')
-rw-r--r-- | demandoc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -118,7 +118,7 @@ pmandoc(struct mparse *mp, int fd, const char *fn, int list) line = 1; col = 0; - if (mdoc) + if (mdoc) pmdoc(mdoc_node(mdoc), &line, &col, list); else if (man) pman(man_node(man), &line, &col, list); @@ -168,7 +168,7 @@ again: end = p - 1; while (end > start) - if ('.' == *end || ',' == *end || + if ('.' == *end || ',' == *end || '\'' == *end || '"' == *end || ')' == *end || '!' == *end || '?' == *end || ':' == *end || @@ -200,7 +200,7 @@ again: /* * Print the input word, skipping any special characters. */ - while ('\0' != *p) + while ('\0' != *p) if ('\\' == *p) { p++; esc = mandoc_escape(&p, NULL, NULL); @@ -221,7 +221,7 @@ pline(int line, int *linep, int *col, int list) /* * Print out as many lines as needed to reach parity with the - * original input. + * original input. */ while (*linep < line) { @@ -241,7 +241,7 @@ pmdoc(const struct mdoc_node *p, int *line, int *col, int list) pline(p->line, line, col, list); if (MDOC_TEXT == p->type) pstring(p->string, p->pos, col, list); - if (p->child) + if (p->child) pmdoc(p->child, line, col, list); } } @@ -255,7 +255,7 @@ pman(const struct man_node *p, int *line, int *col, int list) pline(p->line, line, col, list); if (MAN_TEXT == p->type) pstring(p->string, p->pos, col, list); - if (p->child) + if (p->child) pman(p->child, line, col, list); } } |