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

Can line breaks in ICS export be encoded \n instead of \N #511

Closed
Neudrino opened this issue Feb 9, 2025 · 4 comments
Closed

Can line breaks in ICS export be encoded \n instead of \N #511

Neudrino opened this issue Feb 9, 2025 · 4 comments

Comments

@Neudrino
Copy link
Contributor

Neudrino commented Feb 9, 2025

Hi @qwandor ,

line breaks in ICS export are currently "encoded" as \N. This is valid according to the official ICS specification (page 45).
However, it appears that \n is much more common and some (downstream) software has issues handling the \N correctly.

Image

I have not found the place, where \N is introduced in the code on first sight. As I am not familiar with Rust, I cannot make out any function, which would as a default.

Would it be possible, desired and reasonably simple to change the line separator to \n instead of the capitalised one?

@qwandor
Copy link
Owner

qwandor commented Feb 9, 2025

Hi there,
iCalendar import and export is handled by https://crates.io/crates/icalendar, so you could try filing a bug at https://github.com/hoodie/icalendar about that.

@qwandor
Copy link
Owner

qwandor commented Feb 9, 2025

@qwandor
Copy link
Owner

qwandor commented Feb 27, 2025

This is now fixed in the icalendar crate and I've deployed a new version so the fix is live.

@qwandor qwandor closed this as completed Feb 27, 2025
@Neudrino
Copy link
Contributor Author

Image

Confirm. That fixes the issue.
Thanks for your effort with this issue in the foreign package! 💯 😃 🙏

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

No branches or pull requests

2 participants