summaryrefslogtreecommitdiffstats
path: root/src/extension/parameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/parameter.cpp')
-rw-r--r--src/extension/parameter.cpp8
1 files 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;