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

implement iCalendar / RFC 5545 specification to allow multi-line fields #41

Open
cantremember opened this issue Apr 11, 2019 · 1 comment

Comments

@cantremember
Copy link

the iCalendar format produced by this Component does not conform to the RFC 5545 specification with regards to line "folding" and line break escapement

3.1. Content Lines

Lines of text SHOULD NOT be longer than 75 octets, excluding the line
break. Long content lines SHOULD be split into a multiple line
representations using a line "folding" technique.

3.3.11. Text

An intentional formatted text line break MUST only be included in
a "TEXT" property value by representing the line break with the
character sequence of BACKSLASH, followed by a LATIN SMALL LETTER
N or a LATIN CAPITAL LETTER N, that is "\n" or "\N".

as a result, if you provide a multi-line { description },

  • you'll only see the first line in the parsed iCalendar Event
  • if the non-first-lines in the multi-line description contain iCalendar rules, they will be interpreted by the parser
cantremember added a commit to cantremember/react-add-to-calendar that referenced this issue Apr 11, 2019
cantremember added a commit to cantremember/react-add-to-calendar that referenced this issue Apr 11, 2019
- `karma` listening host fix for Safari
- `eslint` should not process any generated content
@jagannath7775
Copy link

jagannath7775 commented Apr 7, 2020

hi,
I am trying to add multiline description in calendar
like

              <AddToCalendar
                      listItems={[
                        { apple: "Apple Calendar" },
                        { google: "Google" },
                        { outlook: "Outlook" }
                      ]}
                      event={{
                        title:"Event Tiltle",
                        description: "description line 1\n description line2",
                        location: "address here",
                        startTime: "dateHere",
                        endTime: "dateHere"
                      }}
              />

but here in description not getting descrption line 2 in case of icalendar.
In case of google calendar it is working fine

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