Commit 99600632 authored by Sébastien Wilmet's avatar Sébastien Wilmet

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 '\').
parent 1497d112
......@@ -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>.*)";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment