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:
@ -241,7 +241,7 @@ describe("Paragraph", () => {
|
||||
|
||||
describe("#indent", () => {
|
||||
it("should set the paragraph indent to the given values", () => {
|
||||
paragraph.indent(720);
|
||||
paragraph.indent({ left: 720 });
|
||||
const tree = new Formatter().format(paragraph);
|
||||
expect(tree).to.deep.equal({
|
||||
"w:p": [
|
||||
|
Reference in New Issue
Block a user