summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-30 00:19:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-30 00:19:46 +0000
commitf29465dfd1d54259bc6dbe98b7358ddf37c74f05 (patch)
tree42ea1f6e2680fa01f63d4f50886b369c274b2a23
parent128c4e26d83dc0c7044e2bfea000eece5b808ae1 (diff)
downloadmandoc-f29465dfd1d54259bc6dbe98b7358ddf37c74f05.tar.gz
correctly handle table layout lines starting with a dot
-rw-r--r--roff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index 0edc7e7b..79c40c83 100644
--- a/roff.c
+++ b/roff.c
@@ -1202,7 +1202,7 @@ roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs)
if (r->eqn != NULL)
return(eqn_read(&r->eqn, ln, buf->buf, ppos, offs));
if (r->tbl != NULL && ( ! ctl || buf->buf[pos] == '\0'))
- return(tbl_read(r->tbl, ln, buf->buf, pos));
+ return(tbl_read(r->tbl, ln, buf->buf, ppos));
if ( ! ctl)
return(roff_parsetext(buf, pos, offs));