summaryrefslogtreecommitdiffstats
path: root/src/printdocvisitor.h
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/printdocvisitor.h
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/printdocvisitor.h')
-rw-r--r--src/printdocvisitor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/printdocvisitor.h b/src/printdocvisitor.h
index 17d938e..4275300 100644
--- a/src/printdocvisitor.h
+++ b/src/printdocvisitor.h
@@ -187,7 +187,10 @@ class PrintDocVisitor : public DocVisitor
case DocInclude::Include: printf("include"); break;
case DocInclude::IncWithLines: printf("incwithlines"); break;
case DocInclude::DontInclude: printf("dontinclude"); break;
- case DocInclude::HtmlInclude: printf("htmlinclude"); break;
+ case DocInclude::HtmlInclude:
+ printf("htmlinclude");
+ if (inc->isBlock()) printf(" block=\"yes\"");
+ break;
case DocInclude::LatexInclude: printf("latexinclude"); break;
case DocInclude::VerbInclude: printf("verbinclude"); break;
case DocInclude::Snippet: printf("snippet"); break;