[latexila/latexila-2-12] Fix regex in latex post-processor



commit 99600632f4dbb4247cf6c712fd77401da46f7170
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun May 11 14:04:44 2014 +0200

    Fix regex in latex post-processor
    
    In pdftex.web (in the source code of TeXLive), we can see:
    print(") has occurred while \output is active")
    
    But in a regex the backslash must be escaped. (And in a C string the
    backslash must be escaped too, so there are 4 '\').

 src/latex_post_processor.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/latex_post_processor.vala b/src/latex_post_processor.vala
index 9609ac0..864fd91 100644
--- a/src/latex_post_processor.vala
+++ b/src/latex_post_processor.vala
@@ -102,7 +102,7 @@ private class LatexPostProcessor : PostProcessor
             reg_badbox_lines = new Regex ("(.*) at lines (\\d+)--(\\d+)");
             reg_badbox_line = new Regex ("(.*) at line (\\d+)");
             reg_badbox_output =
-                new Regex ("(.*)has occurred while \\output is active");
+                new Regex ("(.*)has occurred while \\\\output is active");
 
             string warning_str = "^(((! )?(La|pdf)TeX)|Package|Class)";
             warning_str += "(?P<name>.*) Warning[^:]*:\\s*(?P<contents>.*)";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]