diff options
| author | Ted Gould <ted@gould.cx> | 2007-10-30 19:27:57 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-10-30 19:27:57 +0000 |
| commit | 56241dead7a39aeae752a497dbd2fe6d4f408e8b (patch) | |
| tree | 25f4f3775d9d609b1251db17b35ba612629c7f0f /src/extension/paramstring.cpp | |
| parent | add alt dragging for no change mode (diff) | |
| download | inkscape-56241dead7a39aeae752a497dbd2fe6d4f408e8b.tar.gz inkscape-56241dead7a39aeae752a497dbd2fe6d4f408e8b.zip | |
r16675@shi: ted | 2007-10-12 21:06:32 -0700
Fixing the escaping
(bzr r3975)
Diffstat (limited to 'src/extension/paramstring.cpp')
| -rw-r--r-- | src/extension/paramstring.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
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. */ |
