Skip to content

Commit

Permalink
Docs: use a working ical example for create_schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Sep 19, 2023
1 parent 897069b commit dab3140
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/schema_formats/HTML/HTML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xsl:text>&gt;</xsl:text>
<xsl:call-template name="newline"/>
<xsl:choose>
<xsl:when test="name() = 'help_response' or name() = 'p'">
<xsl:when test="name() = 'help_response' or name() = 'p' or name() = 'icalendar'">
<!-- Special case certain responses to preserve whitespace. -->
<xsl:variable name="string" select="func:string-trim-nl(text())"/>
<xsl:if test="string-length($string) &gt; 0">
Expand Down
14 changes: 10 additions & 4 deletions src/schema_formats/XML/GMP.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -4994,11 +4994,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<summary>Create a schedule</summary>
<request>
<create_schedule>
<name>Every day</name>
<timezone>UTC</timezone>
<name>On the third Wednesday of every month</name>
<timezone>America/New_York</timezone>
<icalendar>
<truncated>...</truncated>
DTSTART;TZID=/UTC:20200603T162600
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//XXX//NONSGML//EN
BEGIN:VEVENT
DTSTART;TZID="America/New_York":20221214T000100
RRULE:FREQ=MONTHLY;BYDAY=3WE;
END:VEVENT
END:VCALENDAR
</icalendar>
</create_schedule>
</request>
Expand Down

0 comments on commit dab3140

Please sign in to comment.