extern wxHashTable TexReferences;
+extern int passNumber;
extern void DecToHex(int, wxChar *);
void GenerateHTMLIndexFile(wxChar *fname);
if (s)
{
TexOutput(_T(" BACKGROUND=\""));
- TexOutput(s);
+ TexOutput(s);
TexOutput(_T("\""));
}
}
if ( combineSubSections && !subsectionStarted )
{
fflush(Sections);
-
+
// Read old .con file in at this point
wxChar buf[256];
wxStrcpy(buf, CurrentSectionFile);
TexOutput(_T("\n<TABLE>\n"));
else {
TexOutput(_T("\n</TABLE>\n"));
- // DHS
+ // DHS
TwoColWidthA = -1;
TwoColWidthB = -1;
}
TraverseChildrenFromChunk(helpRefText);
if (!ignoreBadRefs)
TexOutput(_T(" (REF NOT FOUND)"));
- wxString errBuf;
- errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
- OnInform((wxChar *)errBuf.c_str());
+
+ // for launching twice do not warn in preparation pass
+ if ((passNumber == 1 && !runTwice) ||
+ (passNumber == 2 && runTwice))
+ {
+ wxString errBuf;
+ errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
+ OnInform((wxChar *)errBuf.c_str());
+ }
}
}
else TexOutput(_T("??"));
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
- TexOutput(alignment);
+ TexOutput(alignment);
TexOutput(_T("></A>"));
}
else
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
- TexOutput(alignment);
+ TexOutput(alignment);
TexOutput(_T(">"));
delete[] inlineFilename;
}
wxSnprintf(buf, sizeof(buf), _T("\n<TD VALIGN=TOP WIDTH=%d>\n"),TwoColWidthB);
TexOutput(buf);
}
- else
+ else
{
TexOutput(_T("\n<TD VALIGN=TOP>\n"));
}