Conversation
✅ Deploy Preview for test-hs3 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7554f39 to
0f759b2
Compare
|
Sooo, gut feeling says that this will be an issue if the description contains any non-ascii characters. Good thing that Polish hardly uses non-ascii :|. Also supposedly So other Claude suggests some fixes, although as always with AI it may be good to check if they make sense / are better / if it's actually broken now: ClaudeAI: Better SolutionsOption 1: Simple iCal escaping (recommended)Drop DESCRIPTION:{{ $event.page.Content | replaceRE `\\` `\\\\` | replaceRE `;` `\;` | replaceRE `,` `\,` | replaceRE `\n` `\n ` }}This escapes backslashes, semicolons, commas, and folds newlines (iCal uses space-prefixed continuation lines). Option 2: Proper Quoted-Printable (complex)Hugo doesn't have built-in QP encoding, so you'd need to create a custom shortcode or use a pre-processing step with a tool that properly encodes QP. Option 3: Plain text with basic escapingDESCRIPTION:{{ $event.page.Content | plainify | replaceRE `\n` `\\n` }}The I'd recommend Option 1 or 3 depending on whether you need to preserve HTML formatting or not. Both handle Unicode properly without additional encoding. |
|
Yeah, I can already see that different implementations might have different ways of parsing this. It's a first step, though! |
No description provided.