From b303922601f56d18c6f93423c4ff3d27382f885e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 24 Dec 2013 19:11:45 +0000 Subject: 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. --- mdoc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdoc.h') diff --git a/mdoc.h b/mdoc.h index cc807d77..d0153b44 100644 --- a/mdoc.h +++ b/mdoc.h @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.124 2012/11/16 17:16:55 schwarze Exp $ */ +/* $Id: mdoc.h,v 1.125 2013/12/24 19:11:45 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -351,6 +351,7 @@ struct mdoc_node { int nchild; /* number children */ int line; /* parse line */ int pos; /* parse column */ + int lastline; /* the node ends on this line */ enum mdoct tok; /* tok or MDOC__MAX if none */ int flags; #define MDOC_VALID (1 << 0) /* has been validated */ -- cgit v1.2.3-56-ge451