diff --git a/lib/CalEventParser.ts b/lib/CalEventParser.ts index ced7276e2d..d7240fbfad 100644 --- a/lib/CalEventParser.ts +++ b/lib/CalEventParser.ts @@ -38,11 +38,10 @@ export default class CalEventParser { */ public getChangeEventFooterHtml(): string { return ` -
-
- Need to change this event?
- Cancel: ${this.getCancelLink()}
- Reschedule: ${this.getRescheduleLink()} + +Need to change this event? +Cancel: ${this.getCancelLink()} +Reschedule: ${this.getRescheduleLink()} `; } @@ -59,27 +58,27 @@ export default class CalEventParser { * @protected */ public getRichDescriptionHtml(): string { + // This odd indentation is necessary because otherwise the leading tabs will be applied into the event description. return ( ` - Event Type:
- ${this.calEvent.type}
-
- Invitee Email:
- ${this.calEvent.attendees[0].email}
-
` + +Event Type: +${this.calEvent.type} + +Invitee Email: +${this.calEvent.attendees[0].email} + +` + (this.calEvent.location - ? ` - Location:
- ${this.calEvent.location}
-
- ` + ? `Location: +${this.calEvent.location} + +` : "") + - `Invitee Time Zone:
- ${this.calEvent.attendees[0].timeZone}
-
- Additional notes:
- ${this.calEvent.description} - ` + + `Invitee Time Zone: +${this.calEvent.attendees[0].timeZone} + +Additional notes: +${this.calEvent.description}` + this.getChangeEventFooterHtml() ); }