]> git.lyx.org Git - lyx.git/commitdiff
* src/LaTeX.C (deplog):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 19 Feb 2007 09:02:44 +0000 (09:02 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 19 Feb 2007 09:02:44 +0000 (09:02 +0000)
- refine linebreak check further.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17252 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeX.C

index 4cd3c735d178cef0ad431de27fde86e18799bcf8..5998c5acee65ffbcc420006fdece22231b653f0d 100644 (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