Skip to content
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

Empty properties causing extra indents in XmlHandler #893

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

karenhanson
Copy link
Contributor

Submitting this minor fix to move down the piece of code that increments the indent level in XmlHandler.showProperty. I kept noticing when running large batches the XML would gradually move across the page. I figured out that when Utils.isPropertyEmpty() comes back true, it increments the indent unnecessarily causing misalignment in the XML. This corrects the alignment issue.

Minor fix to move down the code that increments the indent level in XmlHandler.showProperty - when Utils.isPropertyEmpty is true, it indents unnecessarily causing misalignment in the XML.
@karenhanson
Copy link
Contributor Author

OK, I see it's failing integration tests because it's comparing to XML files with the previous indents. Not sure where to find those files to update them...

@carlwilson carlwilson added the bug A product defect that needs fixing label Mar 4, 2024
@carlwilson carlwilson merged commit 3e58ba9 into openpreserve:integration Mar 5, 2024
3 of 4 checks passed
@carlwilson carlwilson added this to the JHOVE 1.30 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants