]> git.saurik.com Git - android/aapt.git/commitdiff
Normalize output of XMLtree content
authorShachar Shemesh <lingnu@gmail.com>
Mon, 11 Apr 2011 10:32:19 +0000 (13:32 +0300)
committerShachar Shemesh <lingnu@gmail.com>
Mon, 11 Apr 2011 10:32:19 +0000 (13:32 +0300)
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

index c0d74275a8a6a6883fedeed008ab6e993e4658cc..19248bf7fe37343ed64f1466a8d32f166bfd4791 100644 (file)
@@ -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());
         }
     }