X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fe30bceff0445f540e639d2b6d3977d56b34020..0d9b2c16361930cc9b7378102395763db801250f:/utils/tex2rtf/src/htmlutil.cpp diff --git a/utils/tex2rtf/src/htmlutil.cpp b/utils/tex2rtf/src/htmlutil.cpp index c3233630b7..5b357eda1a 100644 --- a/utils/tex2rtf/src/htmlutil.cpp +++ b/utils/tex2rtf/src/htmlutil.cpp @@ -874,6 +874,8 @@ void HTMLOnMacro(int macroId, int no_args, bool start) if ( combineSubSections && !subsectionStarted ) { + fflush(Sections); + // Read old .con file in at this point wxChar buf[256]; wxStrcpy(buf, CurrentSectionFile); @@ -1649,6 +1651,11 @@ void HTMLOnMacro(int macroId, int no_args, bool start) { if (start) { + // NB: if this is uncommented, the table of contents + // completely disappears. If left commented, it's in the wrong + // place. + //fflush(Titlepage); + FILE *fd = wxFopen(ContentsName, _T("r")); if (fd) { @@ -1659,6 +1666,7 @@ void HTMLOnMacro(int macroId, int no_args, bool start) ch = getc(fd); } fclose(fd); + fflush(Titlepage); } else { @@ -3024,7 +3032,7 @@ bool HTMLGo(void) { SetCurrentOutput(tmpTitle); HTMLHead(); - TexOutput(_T("\n