Filenames with underscores are no longer reported as errant uses of '_' character
Minor GUI display tweeks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10326
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (helpRefText)
TraverseChildrenFromChunk(helpRefText);
TexOutput(" (REF NOT FOUND)");
if (helpRefText)
TraverseChildrenFromChunk(helpRefText);
TexOutput(" (REF NOT FOUND)");
+ wxString errBuf;
+ errBuf.Printf("Warning: unresolved reference '%s'", refName);
+ OnInform((char *)errBuf.c_str());
}
}
else TexOutput("??");
}
}
else TexOutput("??");
- sprintf(buf, "Warning: unresolved reference %s.", refName);
+ sprintf(buf, "Warning: unresolved reference '%s'", refName);
errBuf.Printf("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it.",LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
OnError((char *)errBuf.c_str());
}
errBuf.Printf("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it.",LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
OnError((char *)errBuf.c_str());
}
- else if ((buf[bufIndex-1] != '\\') && (buf[0] != '%')) // If it is a comment line, then no warnings
+ else if ((buf[bufIndex-1] != '\\') && (buf[0] != '%') && // If it is a comment line, then no warnings
+ (strncmp(buf, "\\input", 6))) // do not report filenames that have underscores in them
{
wxString errBuf;
errBuf.Printf("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it.",LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
{
wxString errBuf;
errBuf.Printf("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it.",LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
{
char buf[300];
TexOutput("??", TRUE);
{
char buf[300];
TexOutput("??", TRUE);
- sprintf(buf, "Warning: unresolved reference %s.", refName);
+ sprintf(buf, "Warning: unresolved reference '%s'", refName);