mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* 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:
parent
c251034241
commit
ba9462c492
22
src/LaTeX.C
22
src/LaTeX.C
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user