From 0e6ac19824a7f2c3462142568c17a2ec5007d809 Mon Sep 17 00:00:00 2001 From: Shachar Shemesh Date: Mon, 11 Apr 2011 13:32:19 +0300 Subject: [PATCH] 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 --- XMLNode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } } -- 2.47.2