aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/demandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-10 08:05:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-10 08:05:30 +0000
commit2f05117d9472fd6926678d83a6d992924f8809ef (patch)
tree986b9653e9bb1611827f918afcfa9766ff17414d /demandoc.c
parent3de89b5964cf432d6662b93d7c27429bf3c17691 (diff)
downloadmandoc-2f05117d9472fd6926678d83a6d992924f8809ef.tar.gz
mandoc-2f05117d9472fd6926678d83a6d992924f8809ef.tar.zst
mandoc-2f05117d9472fd6926678d83a6d992924f8809ef.zip
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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/demandoc.c b/demandoc.c
index d201be6c..f515931d 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -1,4 +1,4 @@
-/* $Id: demandoc.c,v 1.14 2015/02/07 06:28:08 schwarze Exp $ */
+/* $Id: demandoc.c,v 1.15 2015/02/10 08:05:30 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);
}
}