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 | ca69e819a0548e61d559a073c81a8124b5a4bf47 (patch) | |
tree | 9ff929bd8035d0b3cda43f697149c0258807e101 | |
parent | 5bca53471f33910e615dfcf194ff65a4b3ed65fb (diff) | |
download | mandoc-ca69e819a0548e61d559a073c81a8124b5a4bf47.tar.gz mandoc-ca69e819a0548e61d559a073c81a8124b5a4bf47.tar.zst mandoc-ca69e819a0548e61d559a073c81a8124b5a4bf47.zip |
Make -man check for tabs correctly print the column.VERSION_1_11_7
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 9e621b07..5299253b 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.175 2011/08/19 13:59:23 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.176 2011/09/02 19:40:18 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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); } } |