From 928752d42bd42b4cabc95c288ab0898ccdf78c1c Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 20 May 2008 18:11:51 +0000 Subject: Real string escaping this time... --- lib/BLua.cc | 6 +++--- 1 file 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 #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"; -- cgit v1.2.3