Changes to detect unresolved references (REF NOT FOUND) during HTML conversion

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
This commit is contained in:
George Tasker
2001-05-25 13:02:53 +00:00
parent c0ffb626ed
commit 31ad62bc09
3 changed files with 7 additions and 3 deletions

View File

@@ -600,7 +600,8 @@ bool read_a_line(char *buf)
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());
@@ -3133,7 +3134,7 @@ bool DefaultOnArgument(int macroId, int arg_no, bool start)
{
char buf[300];
TexOutput("??", TRUE);
sprintf(buf, "Warning: unresolved reference %s.", refName);
sprintf(buf, "Warning: unresolved reference '%s'", refName);
OnInform(buf);
}
}