From: Shachar Shemesh Date: Mon, 11 Apr 2011 10:32:19 +0000 (+0300) Subject: Normalize output of XMLtree content X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/0e6ac19824a7f2c3462142568c17a2ec5007d809?ds=inline;hp=3acf3fd9b37b2d02c0457ea4c5b1049b9a0fcf9b Normalize output of XMLtree content Make the output from aapt dump xmltree normalized, so that it is unambigously displayed regardless of the content of the strings. Previous patch left out handling of XML element content. Change-Id: Ib8016996c769f3dde7a87f7ecbdf850333f2426a --- diff --git a/XMLNode.cpp b/XMLNode.cpp index c0d7427..19248bf 100644 --- a/XMLNode.cpp +++ b/XMLNode.cpp @@ -504,7 +504,8 @@ void printXMLBlock(ResXMLTree* block) namespaces.pop(); } else if (code == ResXMLTree::TEXT) { size_t len; - printf("%sC: \"%s\"\n", prefix.string(), String8(block->getText(&len)).string()); + printf("%sC: \"%s\"\n", prefix.string(), ResTable::normalizeForOutput( + String8(block->getText(&len)).string()).string()); } }