projects
/
android
/
aapt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
am e67f8c8c: Merge "Normalize output from aapt d xmltree"
[android/aapt.git]
/
XMLNode.cpp
diff --git
a/XMLNode.cpp
b/XMLNode.cpp
index 8d7acee54461284fba9c829340e8ac1d3740e167..dcbe7db7c54cbf3d23a2b5844edc49e73fc1079e 100644
(file)
--- a/
XMLNode.cpp
+++ b/
XMLNode.cpp
@@
-511,7
+511,8
@@
void printXMLBlock(ResXMLTree* block)
namespaces.pop();
} else if (code == ResXMLTree::TEXT) {
size_t len;
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());
}
}
}
}
@@
-973,7
+974,7
@@
status_t XMLNode::assignResourceIds(const sp<AaptAssets>& assets,
status_t XMLNode::flatten(const sp<AaptFile>& dest,
bool stripComments, bool stripRawValues) const
{
status_t XMLNode::flatten(const sp<AaptFile>& dest,
bool stripComments, bool stripRawValues) const
{
- StringPool strings
= StringPool(false,
mUTF8);
+ StringPool strings
(
mUTF8);
Vector<uint32_t> resids;
// First collect just the strings for attribute names that have a
Vector<uint32_t> resids;
// First collect just the strings for attribute names that have a