From 8d03b3f35e404abfd0ed31022a687fc1eab07fd5 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 5 Apr 2014 13:57:21 +0200 Subject: Fixed problem with ending a paragraph when htmlonly was at the end of a comment block --- src/htmldocvisitor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index fe2e591..9939ef2 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -92,7 +92,6 @@ static bool mustBeOutsideParagraph(DocNode *n) case DocNode::Kind_Internal: /*
*/ case DocNode::Kind_Include: - case DocNode::Kind_Verbatim: case DocNode::Kind_Image: case DocNode::Kind_SecRefList: /*
*/ @@ -107,6 +106,11 @@ static bool mustBeOutsideParagraph(DocNode *n) /* \parblock */ case DocNode::Kind_ParBlock: return TRUE; + case DocNode::Kind_Verbatim: + { + DocVerbatim *dv = (DocVerbatim*)n; + return dv->type()!=DocVerbatim::HtmlOnly || dv->isBlock(); + } case DocNode::Kind_StyleChange: return ((DocStyleChange*)n)->style()==DocStyleChange::Preformatted || ((DocStyleChange*)n)->style()==DocStyleChange::Div || -- cgit v0.12