Merge pull request #178 from dolanmiu/bugfix/correct-toc-instruction
changed comma by semicolon to work in Word 2016.
This commit is contained in:
@ -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) {
|
||||||
|
@ -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',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user