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

Strip trailing tabs in embedded YAML header. #567

Merged

Conversation

gouttegd
Copy link
Contributor

When extracting the embedded YAML header from a SSSOM/TSV file, remove any trailing tabs at the end of the header lines. Such tabs, which may have been inserted by a SSSOM-unaware spreadsheet editor, would prevent the YAML metadata block from being parsed correctly.

If a metadata slot really needs to end with some tabs, it is still possible to quote the slot value to prevent those tabs from being stripped.

closes #566

When extracting the embedded YAML header from a SSSOM/TSV file, remove
any trailing tabs at the end of the header lines. Such tabs, which may
have been inserted by a SSSOM-unaware spreadsheet editor, would prevent
the YAML metadata block from being parsed correctly.

If a metadata slot _really_ needs to end with some tabs, it is still
possible to quote the slot value to prevent those tabs from being
stripped.

closes mapping-commons#566
Copy link
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@matentzn matentzn merged commit e2f67de into mapping-commons:master Dec 13, 2024
8 checks passed
@gouttegd gouttegd deleted the strip-trailing-tabs-in-header branch December 13, 2024 17:45
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.

SSSOM/TSV parser could ignore trailing tabs in embedded YAML header
2 participants