Allow indent to use other options than left and hanging
This is a breaking change. Existing code using indent will break when padding in the number for left.
This commit is contained in:
@ -134,8 +134,8 @@ export class Paragraph extends XmlComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public indent(start: number, hanging?: number): Paragraph {
|
||||
this.properties.push(new Indent(start, hanging));
|
||||
public indent(attrs: object): Paragraph {
|
||||
this.properties.push(new Indent(attrs));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user