diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-06-22 10:16:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 10:16:25 (GMT) |
commit | 7684baadf970c3454702968a7464b7c0d190d9f8 (patch) | |
tree | 944021588edb8dce89167f4b2f7c481bcf0e13eb /src/rtfgen.cpp | |
parent | d3106415072cbab2dda9ba72d4fc31db13824c24 (diff) | |
parent | b81d5b4c799e1180f5570ab8c8626ff46f3aa84a (diff) | |
download | Doxygen-7684baadf970c3454702968a7464b7c0d190d9f8.zip Doxygen-7684baadf970c3454702968a7464b7c0d190d9f8.tar.gz Doxygen-7684baadf970c3454702968a7464b7c0d190d9f8.tar.bz2 |
Merge pull request #7063 from albert-github/feature/bug_html_endcodeline
Incorrect (X)HTML code when generating source code.
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r-- | src/rtfgen.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp index 8139784..2f24ca7 100644 --- a/src/rtfgen.cpp +++ b/src/rtfgen.cpp @@ -48,6 +48,8 @@ #include "filename.h" #include "namespacedef.h" +static bool DoxyCodeLineOpen = FALSE; + //#define DBG_RTF(x) x; #define DBG_RTF(x) @@ -1952,6 +1954,9 @@ void RTFGenerator::endCodeFragment() //styleStack.pop(); //printf("RTFGenerator::endCodeFrament() top=%s\n",styleStack.top()); //t << rtf_Style_Reset << styleStack.top() << endl; + //endCodeLine checks is there is still an open code line, if so closes it. + endCodeLine(); + DBG_RTF(t << "{\\comment (endCodeFragment) }" << endl) t << "}" << endl; m_omitParagraph = TRUE; @@ -3041,6 +3046,22 @@ void RTFGenerator::endInlineMemberDoc() t << "\\cell }{\\row }" << endl; } +void RTFGenerator::writeLineNumber(const char *,const char *,const char *,int l) +{ + DoxyCodeLineOpen = TRUE; + t << QString("%1").arg(l,5) << " "; +} +void RTFGenerator::startCodeLine(bool) +{ + DoxyCodeLineOpen = TRUE; + col=0; +} +void RTFGenerator::endCodeLine() +{ + if (DoxyCodeLineOpen) lineBreak(); + DoxyCodeLineOpen = FALSE; +} + void RTFGenerator::startLabels() { } |