summaryrefslogtreecommitdiff
path: root/tools/aapt/XMLNode.cpp
diff options
context:
space:
mode:
authorShachar Shemesh <lingnu@gmail.com>2011-04-11 13:32:19 +0300
committerShachar Shemesh <lingnu@gmail.com>2011-04-11 13:32:19 +0300
commit7c94b34b5241b548d68a1cb03d10f697386aac65 (patch)
tree7247f0e9de9a79b6eb1758b807544a3344f3acf9 /tools/aapt/XMLNode.cpp
parentca7ad44a8b6764b5935143bfe55700cbddb0d990 (diff)
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
Diffstat (limited to 'tools/aapt/XMLNode.cpp')
-rw-r--r--tools/aapt/XMLNode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aapt/XMLNode.cpp b/tools/aapt/XMLNode.cpp
index c0d74275a8a6..19248bf7fe37 100644
--- a/tools/aapt/XMLNode.cpp
+++ b/tools/aapt/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());
}
}