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

TextColumnExporter does not escape new lines in meta columns #857

Open
thomaskrause opened this issue Jun 18, 2024 · 0 comments
Open

TextColumnExporter does not escape new lines in meta columns #857

thomaskrause opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels

Comments

@thomaskrause
Copy link
Member

Describe the bug
A clear and concise description of what the bug is.

If a corpus contains newlines as meta data value, these are just outputted creating an invalid CSV file.

To Reproduce

Steps to reproduce the behavior:

  1. Download the ReM corpus in the relANNIS data from Laudatio: https://doi.org/10.34644/laudatio-dev-xCS3CnMB7CArCQ9C3LRB
  2. Import it in ANNIS
  3. Execute the TextColumnExporter with any query lemma="ich" and the parameter metakeys=annotation_by on the subcorpus "13_1-bair-P-X"
  4. The output has newlines inside a match.

Expected behavior

The column values should be escaped for new lines and tab characters

Desktop (please complete the following information):

  • ANNIS Version 4.12.2
@thomaskrause thomaskrause self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant