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

dump ris properly when tag is delimited but not a list tag #55

Merged
merged 4 commits into from
Jul 17, 2023
Merged

dump ris properly when tag is delimited but not a list tag #55

merged 4 commits into from
Jul 17, 2023

Conversation

scott-8
Copy link
Contributor

@scott-8 scott-8 commented Jul 14, 2023

If a tag is marked as delimited but not a list tag, the parser will read it in as a list, but will only a single tag (i.e. if the tag is repeated it will be skipped). This was added in #52

If the writer encounters a list tag, whether it is delimited or not, it will write multiple keys. This PR fixes the case where a tag is delimited but not a list tag. Logic was added to re-combine the values of the list with the provided delimiter.

This PR also replaces some hard-coded tags with class variables.

Copy link
Collaborator

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

One minor update to the test please

tests/test_writer.py Show resolved Hide resolved
tests/test_writer.py Outdated Show resolved Hide resolved
@shapiromatron shapiromatron merged commit b2d7842 into MrTango:main Jul 17, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants