Permalink
Browse files

fixed rtf subsection

There was a problem with the table of contents when using subsections in
rtf files.
  • Loading branch information...
waltronix committed Feb 11, 2016
1 parent b48c510 commit 17bd813313cf073a437001f2fa550f286458586e
Showing with 4 additions and 4 deletions.
  1. +4 −4 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;
}

0 comments on commit 17bd813

Please sign in to comment.