summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.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/rtfgen.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/rtfgen.h')
-rw-r--r--src/rtfgen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtfgen.h b/src/rtfgen.h
index fe3e753..b5f06f0 100644
--- a/src/rtfgen.h
+++ b/src/rtfgen.h
@@ -127,9 +127,9 @@ class RTFGenerator : public OutputGenerator
void writeAnchor(const char *fileName,const char *name);
void startCodeFragment();
void endCodeFragment();
- void writeLineNumber(const char *,const char *,const char *,int l) { t << QString("%1").arg(l,5) << " "; }
- void startCodeLine(bool) { col=0; }
- void endCodeLine() { lineBreak(); }
+ void writeLineNumber(const char *,const char *,const char *,int l);
+ void startCodeLine(bool);
+ void endCodeLine();
void startEmphasis() { t << "{\\i "; }
void endEmphasis() { t << "}"; }
void startBold() { t << "{\\b "; }