From 0881deb5306e45b62eb0b2d244bc5d6d73b8c0a4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 8 Jul 2012 12:39:40 -0700 Subject: [PATCH] Support ?expand when used with Objective-C strings. --- Console.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Console.cpp b/Console.cpp index d41f6ef..80c9dbd 100644 --- a/Console.cpp +++ b/Console.cpp @@ -161,7 +161,10 @@ static void Output(CYUTF8String json, FILE *fout, bool expand = false) { if (data == NULL || fout == NULL) return; - if (!expand || data[0] != '"' && data[0] != '\'') + if (!expand || + data[0] != '@' && data[0] != '"' && data[0] != '\'' || + data[0] == '@' && data[1] != '"' && data[1] != '\'' + ) fputs(data, fout); else for (size_t i(0); i != size; ++i) if (data[i] != '\\') -- 2.49.0