Merge pull request #284 from askoufis/numbering-docs-typo

Fixes typo in numbering documentation
This commit is contained in:
Dolan
2019-03-07 17:08:33 +00:00
committed by GitHub

View File

@ -26,7 +26,7 @@ _levels_ which form a sequence starting at 0 indicating the top-level
list look and increasing from there to descibe the sublists, then list look and increasing from there to descibe the sublists, then
sub-sublists, etc. Each level includes the following properties: sub-sublists, etc. Each level includes the following properties:
* **level**: This its 0-based index in the defintion stack * **level**: This is its 0-based index in the definition stack
* **numberFormat**: This indicates how the bullet or number should be * **numberFormat**: This indicates how the bullet or number should be
generated. Options include `bullet` (meaning don't count), `decimal` generated. Options include `bullet` (meaning don't count), `decimal`
(arabic numerals), `upperRoman`, `lowerRoman`, `hex`, and many (arabic numerals), `upperRoman`, `lowerRoman`, `hex`, and many
@ -64,8 +64,8 @@ styles or numbering of any kind, you'll have to use the
`docx.Numbering` class. `docx.Numbering` class.
First you need to create a new numbering container class and use it to First you need to create a new numbering container class and use it to
create your abstract numbering style, define your levels, and creat create your abstract numbering style, define your levels, and create
your concreate numbering style: your concrete numbering style:
```js ```js
const numbering = new docx.Numbering(); const numbering = new docx.Numbering();
@ -78,8 +78,8 @@ abstractNum.createLevel(2, "lowerLetter", "%3)", "start").addParagraphProperty(n
const concrete = numbering.createConcreteNumbering(abstractNum); const concrete = numbering.createConcreteNumbering(abstractNum);
``` ```
You can then apply your concrete style to paragraphs using their You can then apply your concrete style to paragraphs using the
`#setNumbering` method: `setNumbering` method:
```js ```js
topLevelP.setNumbering(concrete, 0); topLevelP.setNumbering(concrete, 0);