diff options
author | pixel <pixel> | 2008-05-20 18:11:51 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-05-20 18:11:51 +0000 |
commit | 928752d42bd42b4cabc95c288ab0898ccdf78c1c (patch) | |
tree | 2817726bda0a724a1ac7f7075916045e46bf1de4 | |
parent | b4ed40f18ae5ba01ffb515ea42417a030e9b01ec (diff) |
Real string escaping this time...
-rw-r--r-- | lib/BLua.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/BLua.cc b/lib/BLua.cc index bc465f3..ec62a8e 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.59 2008-05-18 21:41:33 pixel Exp $ */ +/* $Id: BLua.cc,v 1.60 2008-05-20 18:11:51 pixel Exp $ */ #include <stdlib.h> #include "BLua.h" @@ -852,10 +852,10 @@ String Lua::escape_string(const String & s) { r += s[i]; break; case '\n': - r += "\n"; + r += "\\n"; break; case '\r': - r += "\r"; + r += "\\r"; break; case '\0': r += "\\000"; |