summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-04-05 11:57:21 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-04-05 11:57:21 (GMT)
commit8d03b3f35e404abfd0ed31022a687fc1eab07fd5 (patch)
treeb78e66b0613039b8e97b313c22469af0011b0821 /src/htmldocvisitor.cpp
parent842c816a31537e32cec376c85c0a4363f74d7a54 (diff)
downloadDoxygen-8d03b3f35e404abfd0ed31022a687fc1eab07fd5.zip
Doxygen-8d03b3f35e404abfd0ed31022a687fc1eab07fd5.tar.gz
Doxygen-8d03b3f35e404abfd0ed31022a687fc1eab07fd5.tar.bz2
Fixed problem with ending a paragraph when htmlonly was at the end of a comment block
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp6
1 files changed, 5 insertions, 1 deletions
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:
/* <div> */
case DocNode::Kind_Include:
- case DocNode::Kind_Verbatim:
case DocNode::Kind_Image:
case DocNode::Kind_SecRefList:
/* <hr> */
@@ -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 ||