mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-24 11:45:53 +01:00
added additional unit-test, cleaned up spacing
This commit is contained in:
parent
5076612c87
commit
d9fda1feda
@ -10,7 +10,7 @@ import org.xmlpull.v1.XmlSerializer;
|
|||||||
/**
|
/**
|
||||||
* Implementation of XmlSerializer interface from XmlPull V1 API. This
|
* Implementation of XmlSerializer interface from XmlPull V1 API. This
|
||||||
* implementation is optimzied for performance and low memory footprint.
|
* implementation is optimzied for performance and low memory footprint.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Implemented features:
|
* Implemented features:
|
||||||
* <ul>
|
* <ul>
|
||||||
@ -25,7 +25,7 @@ import org.xmlpull.v1.XmlSerializer;
|
|||||||
* <li>PROPERTY_SERIALIZER_INDENTATION
|
* <li>PROPERTY_SERIALIZER_INDENTATION
|
||||||
* <li>PROPERTY_SERIALIZER_LINE_SEPARATOR
|
* <li>PROPERTY_SERIALIZER_LINE_SEPARATOR
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MXSerializer implements XmlSerializer {
|
public class MXSerializer implements XmlSerializer {
|
||||||
protected final static String XML_URI = "http://www.w3.org/XML/1998/namespace";
|
protected final static String XML_URI = "http://www.w3.org/XML/1998/namespace";
|
||||||
@ -1009,12 +1009,12 @@ public class MXSerializer implements XmlSerializer {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ch == '&') {
|
if (ch == '&') {
|
||||||
if(!(i < text.length() - 3 && text.charAt(i+1) == 'l'
|
if (!(i < text.length() - 3 && text.charAt(i+1) == 'l'
|
||||||
&& text.charAt(i+2) == 't' && text.charAt(i+3) == ';')){
|
&& text.charAt(i+2) == 't' && text.charAt(i+3) == ';')) {
|
||||||
if (i > pos)
|
if (i > pos)
|
||||||
out.write(text.substring(pos, i));
|
out.write(text.substring(pos, i));
|
||||||
out.write("&");
|
out.write("&");
|
||||||
pos = i + 1;
|
pos = i + 1;
|
||||||
}
|
}
|
||||||
} else if (ch == '<') {
|
} else if (ch == '<') {
|
||||||
if (i > pos)
|
if (i > pos)
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
<item quantity="other">foo %d</item>
|
<item quantity="other">foo %d</item>
|
||||||
<item quantity="one">foo 1</item>
|
<item quantity="one">foo 1</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="issue658">
|
<plurals name="issue_658">
|
||||||
<item quantity="one"><b>%d</b> guide123</item>
|
<item quantity="other"><b>%d</b> guide123</item>
|
||||||
|
<item quantity="one"><b>%d</b> 1</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user