Code

fixed string parameter to work with latex extension. will need further research....
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 7 Jun 2007 08:50:16 +0000 (08:50 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 7 Jun 2007 08:50:16 +0000 (08:50 +0000)
src/extension/parameter.cpp

index 66405e57ecd7e8efca9d4921152f3b8924e87f3a..50b90f71c6a1fee3c88069da0a21f85667edce16 100644 (file)
@@ -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;