Clean up and tests

This commit is contained in:
Dolan
2018-04-10 21:54:52 +01:00
parent ecf1542d95
commit 41f941728e
2 changed files with 17 additions and 2 deletions

View File

@ -129,8 +129,7 @@ export class Paragraph extends XmlComponent {
return this;
}
public bullet(indentLevel: number): Paragraph {
indentLevel = indentLevel || 0;
public bullet(indentLevel: number = 0): Paragraph {
this.properties.push(new Style("ListParagraph"));
this.properties.push(new NumberProperties(1, indentLevel));
return this;