Skip to content

Commit

Permalink
Merge pull request #270 from markau/markau-docxJSON-fixes
Browse files Browse the repository at this point in the history
Fix to example JSON key name, Fix to lib to ensure createListOfNumber…
  • Loading branch information
Ziv-Barber authored Aug 26, 2018
2 parents 7e705c4 + 1d6ab92 commit 9cf9214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/make_docx_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,22 @@ var data = [[{ align: 'right' }, {
type: "numlist"
}, {
type: "text",
text: "numList1.",
val: "numList1.",
}, {
type: "numlist"
}, {
type: "text",
text: "numList2.",
val: "numList2.",
}], [{}, {
type: "dotlist"
}, {
type: "text",
text: "dotlist1.",
val: "dotlist1.",
}, {
type: "dotlist"
}, {
type: "text",
text: "dotlist2.",
val: "dotlist2.",
}], {
type: "pagebreak"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/gendocx.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ function makeDocx ( genobj, new_type, options, gen_private, type_info ) {
newP = genobj.createTable(data.val, data.opt);
break;
case "numlist":
newP = genobj.createListOfDots();
newP = genobj.createListOfNumbers();
break;
case "dotlist":
newP = genobj.createListOfDots();
Expand Down

0 comments on commit 9cf9214

Please sign in to comment.