From e49c636a134e4a7cfef99743c80f108c4955d895 Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 30 Jun 2021 00:31:30 +0200 Subject: [PATCH] Fixed padding --- lib/CalEventParser.ts | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) 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() ); }