-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
XMLBuilder line break behavior change after upgrading #605
Comments
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo. |
It is difficult to decide sometimes what behavior should be kept as different user has different needs. And introducing so many options to control the formatting also can confuse users to take right decision. But I'll check what best can be done |
@amitguptagwl thanks for your response. I would say, based on the docs definition (https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/docs/v4/3.XMLBuilder.md#format): "By default, parsed XML is single line XML string. By format: true, you can format it for better view", the current output is not correct/expected. |
Honestly speaking |
Description
After upgrading from 3.17.4 to 4.2.7 there was an unexpected change in how XMLBuilder behaved regarding putting line breaks in empty elements.
Input
Code
Output
expected data
The text was updated successfully, but these errors were encountered: