From dcf2de0b5adecd8357ee8055e5e51022adeb5832 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 7 Jun 2007 08:50:16 +0000 Subject: fixed string parameter to work with latex extension. will need further research... perhaps now it is broken on linux. (bzr r3054) --- src/extension/parameter.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/extension/parameter.cpp') 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; -- cgit v1.2.3