summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-09-02 19:40:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-09-02 19:40:18 +0000
commit2f337575f0b60b2f7fa3a87d67b27e01f8c40c0d (patch)
treed60dbcc7cdb544460cd2f8448e115dae8867a2aa /mdoc_validate.c
parent0af33c4dfe6f6074f86953dc6a1f7878907722a1 (diff)
downloadmandoc-2f337575f0b60b2f7fa3a87d67b27e01f8c40c0d.tar.gz
Make -man check for tabs correctly print the column.VERSION.1.11.7
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index dd77622a..d9d3b4d9 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -549,7 +549,7 @@ check_text(struct mdoc *m, int ln, int pos, char *p)
for (cp = p; NULL != (p = strchr(p, '\t')); p++) {
if (MDOC_LITERAL & m->flags)
continue;
- mdoc_pmsg(m, ln, (int)(p - cp), MANDOCERR_BADTAB);
+ mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);
}
}