Commit ba98d85a authored by Christian Hagau's avatar Christian Hagau Committed by Patrick Storz

Escape percent characters in LaTeX output


(cherry picked from commit f0f30f1a)
parent ddde047e
Pipeline #157848731 passed with stages
in 85 minutes and 16 seconds
......@@ -371,6 +371,8 @@ void LaTeXTextRenderer::sp_text_render(SPText *textobj)
// escape ampersands
uspanstr = Glib::Regex::create("&")->replace_literal(uspanstr, 0, "\\&", (Glib::RegexMatchFlags)0);
// escape percent
uspanstr = Glib::Regex::create("%")->replace_literal(uspanstr, 0, "\\%", (Glib::RegexMatchFlags)0);
const gchar *spanstr = uspanstr.c_str();
if (!spanstr) {
......
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