[latexila] Fix regex in latex post-processor
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Fix regex in latex post-processor
- Date: Tue, 23 Sep 2014 13:52:44 +0000 (UTC)
commit 7d4485151d90bc920a5ab658f47e367f4d5cda9e
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]