diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-02 19:40:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-02 19:40:18 +0000 |
commit | 2f337575f0b60b2f7fa3a87d67b27e01f8c40c0d (patch) | |
tree | d60dbcc7cdb544460cd2f8448e115dae8867a2aa /mdoc_validate.c | |
parent | 0af33c4dfe6f6074f86953dc6a1f7878907722a1 (diff) | |
download | mandoc-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.c | 2 |
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); } } |