From: gouldtj Date: Tue, 30 Oct 2007 19:27:57 +0000 (+0000) Subject: r16675@shi: ted | 2007-10-12 21:06:32 -0700 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dfa0e4a8295931937b4387b83ad4cdf2f9a05171;p=inkscape.git r16675@shi: ted | 2007-10-12 21:06:32 -0700 Fixing the escaping --- diff --git a/src/extension/paramstring.cpp b/src/extension/paramstring.cpp index 1b5b09ade..f75f891b5 100644 --- a/src/extension/paramstring.cpp +++ b/src/extension/paramstring.cpp @@ -63,29 +63,7 @@ ParamString::string (void) { if (_value == NULL) return new Glib::ustring(""); - - // 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; - for (i = escaped.begin(); i != escaped.end(); ++i) { - if ( *i == '$') { - i = escaped.insert(i, '\\'); - i++; - } - } -#endif - - Glib::ustring * mystring = new Glib::ustring(""); - *mystring += "\""; - *mystring += escaped; - *mystring += "\""; - - return mystring; + return new Glib::ustring(_value); } /** \brief Initialize the object, to do that, copy the data. */