summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-03-03 16:46:03 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-03-03 16:46:03 (GMT)
commit169a67186780c191749b958de0f71a17fa090248 (patch)
tree78d04212d3250fb03a35f64c4e404d329dd324ba /src
parent6cc93683450399fe9ff1d36c5ed6fcf1a294a8bd (diff)
downloadDoxygen-169a67186780c191749b958de0f71a17fa090248.zip
Doxygen-169a67186780c191749b958de0f71a17fa090248.tar.gz
Doxygen-169a67186780c191749b958de0f71a17fa090248.tar.bz2
Fix for unmatched </p> when using \until as the first command
Diffstat (limited to 'src')
-rw-r--r--src/htmldocvisitor.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 81d28eb..c0c22b8 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -2377,16 +2377,14 @@ void HtmlDocVisitor::forceEndParagraph(DocNode *n)
DocPara *para = (DocPara*)n->parent();
int nodeIndex = para->children().findRef(n);
nodeIndex--;
- if (nodeIndex<0) return; // first node
+ if (nodeIndex<0) return; // first node in paragraph
while (nodeIndex>=0 && isInvisibleNode(para->children().at(nodeIndex)))
{
nodeIndex--;
}
- if (nodeIndex>=0)
- {
- DocNode *n = para->children().at(nodeIndex);
- if (mustBeOutsideParagraph(n)) return;
- }
+ if (nodeIndex<0) return; // first visible node in paragraph
+ DocNode *n = para->children().at(nodeIndex);
+ if (mustBeOutsideParagraph(n)) return; // previous node already outside paragraph context
nodeIndex--;
bool styleOutsideParagraph=insideStyleChangeThatIsOutsideParagraph(para,nodeIndex);
bool isFirst;