diff options
author | Andreas Walter <andreas.walter@waltronix.de> | 2016-02-11 12:59:29 (GMT) |
---|---|---|
committer | Andreas Walter <andreas.walter@waltronix.de> | 2016-02-11 12:59:29 (GMT) |
commit | 17bd813313cf073a437001f2fa550f286458586e (patch) | |
tree | ddfa622bbf1ceeeb2a5c3653cf0aedc5689bfe6a /src/rtfdocvisitor.cpp | |
parent | b48c510188dbb040e073fa5e8745678c97f11244 (diff) | |
download | Doxygen-17bd813313cf073a437001f2fa550f286458586e.zip Doxygen-17bd813313cf073a437001f2fa550f286458586e.tar.gz Doxygen-17bd813313cf073a437001f2fa550f286458586e.tar.bz2 |
fixed rtf subsection
There was a problem with the table of contents when using subsections in
rtf files.
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r-- | src/rtfdocvisitor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 07a1046..7386c6e 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -1015,17 +1015,17 @@ void RTFDocVisitor::visitPre(DocHtmlHeader *header) heading.sprintf("Heading%d",level); // set style m_t << rtf_Style[heading]->reference; - // make table of contents entry - m_t << "{\\tc\\tcl \\v " << level << "}"; + // make open table of contents entry that will be closed in visitPost method + m_t << "{\\tc\\tcl" << level << " "; m_lastIsPara=FALSE; - } void RTFDocVisitor::visitPost(DocHtmlHeader *) { if (m_hide) return; DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlHeader)}\n"); - m_t << "\\par"; + // close open table of contens entry + m_t << "} \\par"; m_t << "}" << endl; // end section m_lastIsPara=TRUE; } |