Fix spelling and linting and improve readme

This commit is contained in:
Dolan
2018-09-25 19:49:44 +01:00
parent 72e3d229dc
commit 00efedaa09
6 changed files with 36 additions and 35 deletions

View File

@ -29,7 +29,7 @@ export class TableOfContentsInstruction extends XmlComponent {
if (this.properties.tcFieldIdentifier) {
instruction = `${instruction} \\f "${this.properties.tcFieldIdentifier}"`;
}
if (this.properties.hiperlink) {
if (this.properties.hyperlink) {
instruction = `${instruction} \\h`;
}
if (this.properties.tcFieldLevelRange) {

View File

@ -53,7 +53,7 @@ export class TableOfContentsProperties {
/**
* \h option - Makes the table of contents entries hyperlinks.
*/
public hiperlink: boolean;
public hyperlink: boolean;
/**
* \l option - Includes TC fields that assign entries to one of the levels specified

View File

@ -19,7 +19,7 @@ describe("Table of Contents", () => {
props.captionLabelIncludingNumbers = "C";
props.sequenceAndPageNumbersSeparator = "D";
props.tcFieldIdentifier = "F";
props.hiperlink = true;
props.hyperlink = true;
props.tcFieldLevelRange = "L";
props.pageNumbersEntryLevelsRange = "N";
props.headingStyleRange = "O";

View File

@ -1,4 +1,3 @@
// import { TableOfContentsProperties } from "./properties";
import { Paragraph } from "file/paragraph";
import { Run } from "file/paragraph/run";
import { Begin, End, Separate } from "file/paragraph/run/field";