aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
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
commit972d7f6133395238354f690c769ec2b207cb6e08 (patch)
treed2c690d410eb9abbe6cd35fe99c303c12377336a /roff.c
parent298ea6bcfad22416e6f603c742dbdb91ce4c4cd6 (diff)
downloadmandoc-972d7f6133395238354f690c769ec2b207cb6e08.tar.gz
mandoc-972d7f6133395238354f690c769ec2b207cb6e08.tar.zst
mandoc-972d7f6133395238354f690c769ec2b207cb6e08.zip
correctly handle table layout lines starting with a dot
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index d64807d6..4ec05eb9 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.258 2015/01/28 17:32:07 schwarze Exp $ */
+/* $Id: roff.c,v 1.259 2015/01/30 00:19:46 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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));