-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set indentation for attributes in new lines #9
Comments
I agree , there a lot of other issues to fix on |
Any updates? |
Sorry I don't know how I forgot this issue. |
It only scales the calculated indentation, it does not set the indentation. |
I feel like i missed your point. As on the last commit you can set indentation to any position you like, I kept |
I have ended up writing a concrete implementation of XmlPullParser to handle this. As I said in #18, I don't think XML conversion should be part of the library as it can be handled quite easily using XmlSerializer and Transformer functions. |
There is an option to set indentation for child tags in
XMLDocument
but no option to set indentation for new line attributes and they are at present calculated atXMLElement#appendAttributesIndentText(Writer)
. It might be better to provide an option to set indentations instead of calculating them. For example, instead of providing an argumentboolean newLineAttributes
, you can provideint attributeIndentation
whose negative value (e.g.-1
) would imply no new line and any positive number would imply the amount of indentation.Thanks.
The text was updated successfully, but these errors were encountered: