Skip to content

Commit

Permalink
Fixed problem with ending a paragraph when htmlonly was at the end of…
Browse files Browse the repository at this point in the history
… a comment block
  • Loading branch information
Dimitri van Heesch committed Apr 5, 2014
1 parent 842c816 commit 8d03b3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/htmldocvisitor.cpp
Expand Up @@ -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> */
Expand All @@ -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 ||
Expand Down

0 comments on commit 8d03b3f

Please sign in to comment.