Skip to content

Commit 7c94b34

Browse files
author
Shachar Shemesh
committed
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
1 parent ca7ad44 commit 7c94b34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/aapt/XMLNode.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,8 @@ void printXMLBlock(ResXMLTree* block)
504504
namespaces.pop();
505505
} else if (code == ResXMLTree::TEXT) {
506506
size_t len;
507-
printf("%sC: \"%s\"\n", prefix.string(), String8(block->getText(&len)).string());
507+
printf("%sC: \"%s\"\n", prefix.string(), ResTable::normalizeForOutput(
508+
String8(block->getText(&len)).string()).string());
508509
}
509510
}
510511

0 commit comments

Comments
 (0)