Commit 8d03b3f3 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed problem with ending a paragraph when htmlonly was at the end of a comment block

parent 842c816a
...@@ -92,7 +92,6 @@ static bool mustBeOutsideParagraph(DocNode *n) ...@@ -92,7 +92,6 @@ static bool mustBeOutsideParagraph(DocNode *n)
case DocNode::Kind_Internal: case DocNode::Kind_Internal:
/* <div> */ /* <div> */
case DocNode::Kind_Include: case DocNode::Kind_Include:
case DocNode::Kind_Verbatim:
case DocNode::Kind_Image: case DocNode::Kind_Image:
case DocNode::Kind_SecRefList: case DocNode::Kind_SecRefList:
/* <hr> */ /* <hr> */
...@@ -107,6 +106,11 @@ static bool mustBeOutsideParagraph(DocNode *n) ...@@ -107,6 +106,11 @@ static bool mustBeOutsideParagraph(DocNode *n)
/* \parblock */ /* \parblock */
case DocNode::Kind_ParBlock: case DocNode::Kind_ParBlock:
return TRUE; return TRUE;
case DocNode::Kind_Verbatim:
{
DocVerbatim *dv = (DocVerbatim*)n;
return dv->type()!=DocVerbatim::HtmlOnly || dv->isBlock();
}
case DocNode::Kind_StyleChange: case DocNode::Kind_StyleChange:
return ((DocStyleChange*)n)->style()==DocStyleChange::Preformatted || return ((DocStyleChange*)n)->style()==DocStyleChange::Preformatted ||
((DocStyleChange*)n)->style()==DocStyleChange::Div || ((DocStyleChange*)n)->style()==DocStyleChange::Div ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment