Merge pull request #178 from dolanmiu/bugfix/correct-toc-instruction

changed comma by semicolon to work in Word 2016.
This commit is contained in:
Dolan
2018-10-22 03:37:54 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ export class FieldInstruction extends XmlComponent {
instruction = `${instruction} \\s "${this.properties.seqFieldIdentifierForPrefix}"`; instruction = `${instruction} \\s "${this.properties.seqFieldIdentifierForPrefix}"`;
} }
if (this.properties.stylesWithLevels && this.properties.stylesWithLevels.length) { if (this.properties.stylesWithLevels && this.properties.stylesWithLevels.length) {
const styles = this.properties.stylesWithLevels.map((sl) => `${sl.styleName},${sl.level}`).join(","); const styles = this.properties.stylesWithLevels.map((sl) => `${sl.styleName};${sl.level}`).join(";");
instruction = `${instruction} \\t "${styles}"`; instruction = `${instruction} \\t "${styles}"`;
} }
if (this.properties.useAppliedParagraphOutlineLevel) { if (this.properties.useAppliedParagraphOutlineLevel) {

View File

@ -174,7 +174,7 @@ const COMPLETE_TOC = {
"xml:space": "preserve", "xml:space": "preserve",
}, },
}, },
'TOC \\a "A" \\b "B" \\c "C" \\d "D" \\f "F" \\h \\l "L" \\n "N" \\o "O" \\p "P" \\s "S" \\t "SL,1,SL,2" \\u \\w \\x \\z', 'TOC \\a "A" \\b "B" \\c "C" \\d "D" \\f "F" \\h \\l "L" \\n "N" \\o "O" \\p "P" \\s "S" \\t "SL;1;SL;2" \\u \\w \\x \\z',
], ],
}, },
{ {