Skip to content

Conversation

bennettgoble
Copy link
Member

@bennettgoble bennettgoble commented Apr 2, 2024

Fix indentation on closing element of arrays and file EOL.

  • Added an autobuild.xml from the viewer to test round-trip.

Closes #17

Fix indentation on closing element of arrays.

self.assertEqual(output_xml.decode("utf8"), """<?xml version="1.0" ?>
<llsd>
<map>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches prior versions of LLSD: the starting element after <llsd> is not indented.

@bennettgoble bennettgoble added the bug Something isn't working label Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.67%. Comparing base (c806ece) to head (da987c9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   89.66%   89.67%   +0.01%     
==========================================
  Files           6        6              
  Lines         861      862       +1     
==========================================
+ Hits          772      773       +1     
  Misses         89       89              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bennettgoble bennettgoble force-pushed the signal/fix-array-indent branch 3 times, most recently from 12573b9 to 3d68c44 Compare April 2, 2024 03:46
Fix a missing EOL after </llsd> and add a roundtrip test of viewer autobuild xml.
@bennettgoble bennettgoble force-pushed the signal/fix-array-indent branch from 3d68c44 to da987c9 Compare April 2, 2024 03:51
Copy link
Contributor

@roxanneskelly roxanneskelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice...

@bennettgoble bennettgoble merged commit acb55e3 into main Apr 2, 2024
@bennettgoble bennettgoble deleted the signal/fix-array-indent branch April 2, 2024 06:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

format_pretty_xml() indents badly in a few cases

2 participants