Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c94b34b authored by Shachar Shemesh's avatar Shachar Shemesh
Browse files

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
parent ca7ad44a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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());
        }
    }