summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2174ac)
raw | patch | inline | side by side (parent: d2174ac)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Tue, 30 Oct 2007 19:27:57 +0000 (19:27 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Tue, 30 Oct 2007 19:27:57 +0000 (19:27 +0000) |
Fixing the escaping
src/extension/paramstring.cpp | patch | blob | history |
index 1b5b09ade854505bc027b87cee800a4cdb84cd2a..f75f891b5b008716b5e716f3646b7d45d8a176ed 100644 (file)
{
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. */