From: Ihor Radchenko <yantar92@posteo.net>
To: "Stephen J. Eglen" <stephen@eglen.org.uk>
Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr
Subject: Re: Bug report for ox-icalendar: newlines should be CRLF
Date: Wed, 01 Feb 2023 14:51:17 +0000 [thread overview]
Message-ID: <87ilgljv6i.fsf@localhost> (raw)
In-Reply-To: <m2bknc12kv.fsf@cam.ac.uk>
"Stephen J. Eglen" <stephen@eglen.org.uk> writes:
> The lines from BEGIN:VEVENT to CATEGORIES:test inclusive have CR (^M) as well
> as LF (^J) as newline [in the text above, I've converted the ^M to ***
> to see them eaer. Is that intended? Uploading the file to
> https://icalendar.org/validator.html gives me the error
>
>> Lines not delimited by CRLF sequence near line # 1
>> Reference: RFC 5545 3.1. Content Lines
>
> Nicolas (cc'ed) has confirmed that it seems to be a problem. Before I
> work slowly on a suggested patch, does anyone have an idea on the best
> way forward? Is it possible to encode the file as "DOS" ,using
> something like set-buffer-file-coding-system? SOme lines do however
> have \r and \n see e.g. org-icalendar-fold-string which inserts both \r
> and \n
Sorry for the late reply.
Do I understand correctly that all the ical lines must use \r\n? [1]
If so, we can simply wrap the export output into
`org-icalendar-fold-string' in `org-icalendar-template'. Does it make
sense?
[1] https://icalendar.org/iCalendar-RFC-5545/3-1-content-lines.html
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-02-01 14:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 8:30 Bug report for ox-icalendar: newlines should be CRLF Stephen J. Eglen
2023-01-08 8:50 ` Detlef Steuer
2023-02-01 14:51 ` Ihor Radchenko [this message]
2023-04-02 20:42 ` Jack Kamm
2023-04-03 8:09 ` Stephen J. Eglen
2023-04-14 10:13 ` Ihor Radchenko
2023-04-14 10:45 ` tomas
2023-04-14 16:38 ` Jack Kamm
2023-04-16 5:01 ` Jack Kamm
2024-01-12 13:54 ` Ihor Radchenko
2023-04-15 9:07 ` Stephen J. Eglen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilgljv6i.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
--cc=stephen@eglen.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).