Skip to content

Fix overview field newlines in CSV export#37

Merged
fzlins merged 1 commit intomasterfrom
fix/remove-newlines-from-overview
Apr 25, 2026
Merged

Fix overview field newlines in CSV export#37
fzlins merged 1 commit intomasterfrom
fix/remove-newlines-from-overview

Conversation

@fzlins
Copy link
Copy Markdown
Owner

@fzlins fzlins commented Apr 25, 2026

Summary

This PR fixes formatting issues in the CSV export caused by newline characters in the overview field.

Changes

  • Modified the Episode.__iter__() method in common.py to strip newlines (\n and \r) from the overview field before writing to CSV
  • Newlines are replaced with spaces to maintain readability

Problem

When episode overviews contain line breaks, they cause formatting issues in the generated import.csv file, making it difficult to parse and process correctly in subsequent operations.

Solution

The fix ensures that overview text is cleaned during the CSV export process by replacing all newline characters with spaces, maintaining a single-line format for each CSV row.

Remove line breaks (\n and \r) from episode overview when writing to CSV to prevent formatting issues in the output file. The newlines are replaced with spaces to maintain readability.
@fzlins fzlins marked this pull request as ready for review April 25, 2026 15:40
@fzlins fzlins merged commit c73c66e into master Apr 25, 2026
@fzlins fzlins deleted the fix/remove-newlines-from-overview branch April 25, 2026 15:41
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.

1 participant