summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-11-25 15:34:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-11-25 15:34:58 (GMT)
commit1c0a565a28582d0bc0776988ffef16565563e950 (patch)
tree2ec63650e76e2f1e57bfa1f6eef0d84059e07b52 /src/htmldocvisitor.cpp
parent4c1d17ef7579dabd4db55dc4777185c290edb256 (diff)
downloadDoxygen-1c0a565a28582d0bc0776988ffef16565563e950.zip
Doxygen-1c0a565a28582d0bc0776988ffef16565563e950.tar.gz
Doxygen-1c0a565a28582d0bc0776988ffef16565563e950.tar.bz2
Incorrect number tag sequence for xhtml with htmlinclude command possible
Analogous to the `\htmlonly` also with the `\htmlinclude` command it is possible that some parts are added that cannot be inside a `<p> ... <\/p>` and thus we have to temporary close (and later reopen) the paragraph. The option `[block]` has been added to the `\htmlinclude` command (analogous to the `\htmlonly` command). Problem can be seen with the default doxygen test 30 (`[030_htmlinclude.dox]: test the \htmlinclude command`).
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index e1ac6d6..130bbae 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -608,7 +608,12 @@ void HtmlDocVisitor::visit(DocInclude *inc)
case DocInclude::DontInclude:
break;
case DocInclude::HtmlInclude:
- m_t << inc->text();
+ {
+ bool forced = false;
+ if (inc->isBlock()) forced = forceEndParagraph(inc);
+ m_t << inc->text();
+ if (inc->isBlock()) forceStartParagraph(inc, forced);
+ }
break;
case DocInclude::LatexInclude:
break;