Fix demos

This commit is contained in:
Dolan Miu
2020-12-24 00:00:24 +00:00
parent 6100ff4c4e
commit 17d02a3d1c
4 changed files with 16 additions and 17 deletions

View File

@ -204,7 +204,10 @@ class DocumentCreator {
alignment: AlignmentType.CENTER,
children: [
new TextRun(`Mobile: ${phoneNumber} | LinkedIn: ${profileUrl} | Email: ${email}`),
new TextRun("Address: 58 Elm Avenue, Kent ME4 6ER, UK").break(),
new TextRun({
text: "Address: 58 Elm Avenue, Kent ME4 6ER, UK",
break: 1,
}),
],
});
}

View File

@ -80,6 +80,7 @@ doc.addSection({
children: [
new TextRun("This is a demo "),
new DeletedTextRun({
break: 1,
text: "in order",
color: "red",
bold: true,
@ -95,7 +96,7 @@ doc.addSection({
id: 2,
author: "Firstname Lastname",
date: "2020-10-06T09:00:00Z",
}).break(),
}),
new InsertedTextRun({
text: "to show how to ",
bold: false,