summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.h
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-06-17 12:23:28 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-06-17 12:23:28 (GMT)
commitb81d5b4c799e1180f5570ab8c8626ff46f3aa84a (patch)
tree4b0655d531ae170734f0481c5b1d506758b73b55 /src/htmlgen.h
parent4628578fe856f3ccfe3ade8f702671bfa1854566 (diff)
downloadDoxygen-b81d5b4c799e1180f5570ab8c8626ff46f3aa84a.zip
Doxygen-b81d5b4c799e1180f5570ab8c8626ff46f3aa84a.tar.gz
Doxygen-b81d5b4c799e1180f5570ab8c8626ff46f3aa84a.tar.bz2
Incorrect (X)HTML code when generating source code.
When having the example: ``` /*! \file * \brief * Prerequisite header file */ //! \cond #ifdef HAVE_CONFIG_H #include "gmxpre-config.h" #endif //! \endcond ``` and we run xmllint on it: ``` xmllint --path .../testing/dtd --noout --nonet --postvalid html/*.html ``` we get the messages: ``` html/aa_8h_source.html:75: parser error : Opening and ending tag mismatch: div line 67 and body </body> ^ html/aa_8h_source.html:76: parser error : Opening and ending tag mismatch: body line 17 and html </html> ^ html/aa_8h_source.html:77: parser error : Premature end of data in tag html line 2 ^ ``` It looks like the problematic part in this case is the doxygen type comment at the end of the file. In the past similar situations were present in LaTeX (related to maximum line length correction), but it was only fixed for LaTeX. Besides the change for HTML also small changes were necessary for RTF and docbook.
Diffstat (limited to 'src/htmlgen.h')
-rw-r--r--src/htmlgen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htmlgen.h b/src/htmlgen.h
index ebecc81..2db5b74 100644
--- a/src/htmlgen.h
+++ b/src/htmlgen.h
@@ -212,8 +212,8 @@ class HtmlGenerator : public OutputGenerator
void writeRuler() { t << "<hr/>"; }
void writeAnchor(const char *,const char *name)
{ t << "<a name=\"" << name <<"\" id=\"" << name << "\"></a>"; }
- void startCodeFragment() { t << PREFRAG_START; }
- void endCodeFragment() { t << PREFRAG_END; }
+ void startCodeFragment();
+ void endCodeFragment();
void startEmphasis() { t << "<em>"; }
void endEmphasis() { t << "</em>"; }
void startBold() { t << "<b>"; }