From c9cf64f8d9a6acf70c3da3ae5db31e625bc9677f Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 7 Jun 2007 08:50:16 +0000 Subject: [PATCH] fixed string parameter to work with latex extension. will need further research... perhaps now it is broken on linux. --- src/extension/parameter.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp index 66405e57e..50b90f71c 100644 --- a/src/extension/parameter.cpp +++ b/src/extension/parameter.cpp @@ -901,9 +901,11 @@ ParamFloat::string (void) Glib::ustring * ParamString::string (void) { - gchar * esc = g_strescape(_value, NULL); - Glib::ustring escaped(esc); - g_free(esc); + // FIXME: I think the string should NOT be escaped. Just put between "..." + // Otherwise \frac{1}{2} will become \\frac{1}{2} and then the LaTeX effect won't work.... + //gchar * esc = g_strescape(_value, NULL); + Glib::ustring escaped(_value); + //g_free(esc); #ifdef ESCAPE_DOLLAR_COMMANDLINE // escape the dollar sign Glib::ustring::iterator i; -- 2.30.2