diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-23 08:36:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-23 08:36:32 +0000 |
commit | 8575c261dfe0a8671a0f20ffaf68572b439becba (patch) | |
tree | 735fe7ddaf8297a879ee870878e02e7002d557ce /mdoc_validate.c | |
parent | 9c5966e1ea31e14db2549951ecd0b985aa71f769 (diff) | |
download | mandoc-8575c261dfe0a8671a0f20ffaf68572b439becba.tar.gz mandoc-8575c261dfe0a8671a0f20ffaf68572b439becba.tar.zst mandoc-8575c261dfe0a8671a0f20ffaf68572b439becba.zip |
Bl -column now accepts columns = (1 + stated columns), which covers all remaining column usage/abuse I can see.
Diffstat (limited to 'mdoc_validate.c')
-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 15e10637..797642aa 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.38 2009/07/20 15:05:34 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.39 2009/07/23 08:36:32 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1029,7 +1029,7 @@ post_it(POST_ARGS) for (i = 0; c && MDOC_HEAD == c->type; c = c->next) i++; - if (i < cols) { + if (i < cols || i == (cols + 1)) { if ( ! mdoc_vwarn(mdoc, mdoc->last->line, mdoc->last->pos, "column " "mismatch: have %d, want %d", |