Skip to content

Commit 537814e

Browse files
committed
issue #7087 Invalid (X)HTML in case of \mscfile, \dotfile, \diafile
Adding closing and opening paragraph tag before / after the `\mscfile` etc. as a `\mscfile` can only appear inside a paragraph and would always be a "new" paragraph.
1 parent bdf6efe commit 537814e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/htmldocvisitor.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,6 +1785,7 @@ void HtmlDocVisitor::operator()(const DocDotFile &df)
17851785
{
17861786
if (m_hide) return;
17871787
if (!Config_getBool(DOT_CLEANUP)) copyFile(df.file(),Config_getString(HTML_OUTPUT)+"/"+stripPath(df.file()));
1788+
m_t << "</p>";
17881789
m_t << "<div class=\"dotgraph\">\n";
17891790
writeDotFile(df.file(),df.relPath(),df.context(),df.srcFile(),df.srcLine());
17901791
if (df.hasCaption())
@@ -1797,12 +1798,14 @@ void HtmlDocVisitor::operator()(const DocDotFile &df)
17971798
m_t << "</div>\n";
17981799
}
17991800
m_t << "</div>\n";
1801+
m_t << "<p>";
18001802
}
18011803

18021804
void HtmlDocVisitor::operator()(const DocMscFile &df)
18031805
{
18041806
if (m_hide) return;
18051807
if (!Config_getBool(DOT_CLEANUP)) copyFile(df.file(),Config_getString(HTML_OUTPUT)+"/"+stripPath(df.file()));
1808+
m_t << "</p>";
18061809
m_t << "<div class=\"mscgraph\">\n";
18071810
writeMscFile(df.file(),df.relPath(),df.context(),df.srcFile(),df.srcLine());
18081811
if (df.hasCaption())
@@ -1815,12 +1818,14 @@ void HtmlDocVisitor::operator()(const DocMscFile &df)
18151818
m_t << "</div>\n";
18161819
}
18171820
m_t << "</div>\n";
1821+
m_t << "<p>";
18181822
}
18191823

18201824
void HtmlDocVisitor::operator()(const DocDiaFile &df)
18211825
{
18221826
if (m_hide) return;
18231827
if (!Config_getBool(DOT_CLEANUP)) copyFile(df.file(),Config_getString(HTML_OUTPUT)+"/"+stripPath(df.file()));
1828+
m_t << "</p>";
18241829
m_t << "<div class=\"diagraph\">\n";
18251830
writeDiaFile(df.file(),df.relPath(),df.context(),df.srcFile(),df.srcLine());
18261831
if (df.hasCaption())
@@ -1833,6 +1838,7 @@ void HtmlDocVisitor::operator()(const DocDiaFile &df)
18331838
m_t << "</div>\n";
18341839
}
18351840
m_t << "</div>\n";
1841+
m_t << "<p>";
18361842
}
18371843

18381844
void HtmlDocVisitor::operator()(const DocLink &lnk)

0 commit comments

Comments
 (0)