* src/LaTeX.C (deplog):

- refine linebreak check further.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17252 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-02-19 09:02:44 +00:00
parent c251034241
commit ba9462c492

View File

@ -890,14 +890,20 @@ void LaTeX::deplog(DepTable & head)
// We care for that and save suspicious lines.
// Here we exclude some cases where we are sure
// that there is no continued filename
if (prefixIs(token, "File:") || prefixIs(token, "(Font)")
|| prefixIs(token, "Package:")
|| prefixIs(token, "Language:")
|| prefixIs(token, "LaTeX Info:")
|| prefixIs(token, "LaTeX Font Info:")
|| prefixIs(token, "\\openout[")
|| prefixIs(token, "))"))
lastline = string();
if (!lastline.empty()) {
static regex package_info("Package \\w+ Info: .*");
static regex package_warning("Package \\w+ Warning: .*");
if (prefixIs(token, "File:") || prefixIs(token, "(Font)")
|| prefixIs(token, "Package:")
|| prefixIs(token, "Language:")
|| prefixIs(token, "LaTeX Info:")
|| prefixIs(token, "LaTeX Font Info:")
|| prefixIs(token, "\\openout[")
|| prefixIs(token, "))")
|| regex_match(token, package_info)
|| regex_match(token, package_warning))
lastline = string();
}
if (!lastline.empty())
// probably a continued filename from last line