* LaTeX.cpp (deplog):

- fix regex so that rexeg_search finds more than one match in a line.
	  This fixes a bug where files which were output in the log file in a 
	  line which already listed another file were not dependency tracked.
	  I.e., cases such as
	  (./child1.tex) (./child2.tex)
	  (bug 6024).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30198 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-06-20 13:02:12 +00:00
parent 3830bd3dba
commit 5f7c6b8964

View File

@ -1025,7 +1025,7 @@ void LaTeX::deplog(DepTable & head)
// where "File: file.ext" would be skipped // where "File: file.ext" would be skipped
if (regex_match(token, sub, reg6)) { if (regex_match(token, sub, reg6)) {
// search for strings in (...) // search for strings in (...)
static regex reg6_1("\\(([^()]+)(.).*"); static regex reg6_1("\\(([^()]+)(.)");
smatch what; smatch what;
string::const_iterator first = token.begin(); string::const_iterator first = token.begin();
string::const_iterator end = token.end(); string::const_iterator end = token.end();