summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/BLua.cc6
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";