mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
ResXmlEncoders::encodeAsXmlValue() : fixes for style tags mixed up with spaces.
This commit is contained in:
parent
549dc9e3f4
commit
679078d962
@ -92,7 +92,6 @@ public final class ResXmlEncoders {
|
||||
isInStyleTag = false;
|
||||
startPos = out.length() + 1;
|
||||
enclose = false;
|
||||
wasSpace = true;
|
||||
}
|
||||
} else if (c == ' ') {
|
||||
if (wasSpace) {
|
||||
@ -114,7 +113,7 @@ public final class ResXmlEncoders {
|
||||
break;
|
||||
case '<':
|
||||
isInStyleTag = true;
|
||||
if (enclose || wasSpace) {
|
||||
if (enclose) {
|
||||
out.insert(startPos, '"').append('"');
|
||||
}
|
||||
break;
|
||||
@ -129,7 +128,7 @@ public final class ResXmlEncoders {
|
||||
}
|
||||
|
||||
if (enclose || wasSpace) {
|
||||
out.insert(0, '"').append('"');
|
||||
out.insert(startPos, '"').append('"');
|
||||
}
|
||||
|
||||
return out.toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user