limit attribute indent

This commit is contained in:
REAndroid 2023-04-20 14:58:01 +02:00
parent 480e66e598
commit 9bb47b6f28

View File

@ -402,7 +402,11 @@ public class KXmlSerializer implements XmlSerializer {
indentAttributeReference += prefix.length() + 1;
}
append(name);
indentAttributeReference += name.length();
int len = name.length();
if(len > 20){
len = 20;
}
indentAttributeReference += len;
pending = true;
return this;
}