summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-24 19:11:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-24 19:11:45 +0000
commit8d226e7d9f28fbbca5bd6969e8fe3e6ee69ec94e (patch)
treee007bba721cb9d9e5ad54d2316dd8d2fd6ff6fdd /mdoc.c
parent843cccd2fcf4de8a13a16071c949374ee597d16e (diff)
downloadmandoc-8d226e7d9f28fbbca5bd6969e8fe3e6ee69ec94e.tar.gz
When deciding whether two consecutive macros are on the same input line,
we have to compare the line where the first one *ends* (not where it begins) to the line where the second one starts. This fixes the bug that .Bk allowed output line breaks right after block macros spanning more than one input line, even when the next macro follows on the same line.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdoc.c b/mdoc.c
index 3df0fa4d..14eadb65 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -434,6 +434,7 @@ node_alloc(struct mdoc *mdoc, int line, int pos,
p->sec = mdoc->lastsec;
p->line = line;
p->pos = pos;
+ p->lastline = line;
p->tok = tok;
p->type = type;