add keepLines and keepNext support for paragraph formatting
This commit adds it to the three places where paragraph formatting can be applied right now (directly on the paragraph, paragraph styles, and bullets/numbering styles). I'm separately adding an entry to the wiki regarding what these methods do (widow/orphan control)
This commit is contained in:
@ -205,6 +205,16 @@ class LevelBase extends XmlComponent {
|
||||
this.addParagraphProperty(new paragraph.Spacing(params));
|
||||
return this;
|
||||
};
|
||||
|
||||
public keepNext(): Level {
|
||||
this.addParagraphProperty(new paragraph.KeepNext());
|
||||
return this;
|
||||
}
|
||||
|
||||
public keepLines(): Level {
|
||||
this.addParagraphProperty(new paragraph.KeepLines());
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
export class Level extends LevelBase {
|
||||
|
Reference in New Issue
Block a user