diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-05 13:52:23 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-05 13:52:23 (GMT) |
commit | d0cca5f0bca7ddf2b1f4681fb76132c76b59ab37 (patch) | |
tree | fe5e26955d1c18f747a26db1cae5cf3625225965 /src | |
parent | 5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f (diff) | |
download | Doxygen-d0cca5f0bca7ddf2b1f4681fb76132c76b59ab37.zip Doxygen-d0cca5f0bca7ddf2b1f4681fb76132c76b59ab37.tar.gz Doxygen-d0cca5f0bca7ddf2b1f4681fb76132c76b59ab37.tar.bz2 |
Fixed missing end paragraph marker when inline image appeared as last item.
Diffstat (limited to 'src')
-rw-r--r-- | src/htmldocvisitor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index f89f79e..61212ce 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -126,7 +126,6 @@ static bool mustBeOutsideParagraph(DocNode *n) case DocNode::Kind_Internal: /* <div> */ case DocNode::Kind_Include: - case DocNode::Kind_Image: case DocNode::Kind_SecRefList: /* <hr> */ case DocNode::Kind_HorRuler: @@ -152,6 +151,8 @@ static bool mustBeOutsideParagraph(DocNode *n) ((DocStyleChange*)n)->style()==DocStyleChange::Center; case DocNode::Kind_Formula: return !((DocFormula*)n)->isInline(); + case DocNode::Kind_Image: + return !((DocImage*)n)->isInlineImage(); default: break; } @@ -1205,6 +1206,10 @@ void HtmlDocVisitor::visitPre(DocPara *p) void HtmlDocVisitor::visitPost(DocPara *p) { + + //printf("DocPara::visitPost: parent of kind %d ", + // p->parent() ? p->parent()->kind() : -1); + bool needsTag = FALSE; if (p->parent()) { |