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:
@ -111,7 +111,7 @@ describe("AbstractNumbering", () => {
|
||||
it("#indent", () => {
|
||||
const abstractNumbering = new AbstractNumbering(1);
|
||||
const level = abstractNumbering.createLevel(0, "lowerLetter", "%0.")
|
||||
.indent(720);
|
||||
.indent({ left: 720 });
|
||||
const tree = new Formatter().format(level);
|
||||
expect(tree["w:lvl"]).to.include({
|
||||
"w:pPr": [{"w:ind": [{_attr: {"w:left": 720}}]}],
|
||||
|
Reference in New Issue
Block a user