Turn methods into "add()"

This commit is contained in:
Dolan
2019-06-25 23:17:56 +01:00
parent 3ef8f5311d
commit e2574ec23b
55 changed files with 253 additions and 262 deletions

View File

@ -27,13 +27,13 @@ myStyles
.underline("double", "FF0000")
.spacing({ before: 240, after: 120 }); // TWIP for both
doc.addParagraph(
doc.add(
new Paragraph({
text: "Hello",
style: "myWonkyStyle",
}),
);
doc.addParagraph(
doc.add(
new Paragraph({
text: "World",
heading: HeadingLevel.HEADING_2,