我正在开发一个小项目来生成一个.ics文件,其中包含我可以在Outlook日历中查看的事件信息。 我可以让事件显示在Outlook中,但我想显示多行。 例如,对于此.ics文件:
BEGIN:VCALENDAR VERSION:2.0 METHOD:PUBLISH CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20131227T123500 DTSTART:20131227T080000 DTEND:20131228T170000 SUMMARY:Vacation DESCRIPTION:abc UID:1 SEQUENCE:0 TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR我希望将Vacation作为标题显示,然后在它下面,我希望显示某些类似于<abc>的描述,类似于会议事件的安排方式,如此图片中的outlook:
这可能吗?
I'm working on a small project to generate a .ics file containing event information that I can view in my Outlook calendar. I can get the event to show up in Outlook, but I want to show multiple lines. For example, for this .ics file:
BEGIN:VCALENDAR VERSION:2.0 METHOD:PUBLISH CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20131227T123500 DTSTART:20131227T080000 DTEND:20131228T170000 SUMMARY:Vacation DESCRIPTION:abc UID:1 SEQUENCE:0 TRANSP:TRANSPARENT END:VEVENT END:VCALENDARI want to show Vacation as the title and then right under it, I want to show some kind of description like <abc> similar to how meeting events are scheduled like this pic in outlook:
Is this possible?
最满意答案
你需要逃避换行符。 例如:
SUMMARY:Weekly 1-on-1\nCall my office or cell
请注意,如果您在字段中输入大量信息,则可能需要解决72个字符的行长度限制。 您还应该知道,不同的客户可能会以不同的方式处理换行符,例如Google日历似乎会将其从摘要字段中删除,因此不会产生您要查找的视图。
You need to escape the newline. For example:
SUMMARY:Weekly 1-on-1\nCall my office or cell
Be aware that there is a 72-character line length limit you may need to address if you put lots of information in the field. You should also be aware that different clients might treat the newlines differently, for example Google Calendar appears to remove them from the summary field so will not result in the view that you are looking for.
更多推荐
发布评论