hdoc-tools 0.19.6 → 0.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/hdoc-module.js +10 -15
  2. package/package.json +1 -1
package/hdoc-module.js CHANGED
@@ -631,21 +631,16 @@
631
631
  if (parentLinks.length > 0) {
632
632
  if (parentLinks[0].link === undefined || parentLinks[0].link === "")
633
633
  parentlink = false;
634
- if (
635
- parentLinks[1] &&
636
- parentLinks[1].link === undefined &&
637
- items.length > 0 &&
638
- items[0].link
639
- ) {
640
- parentLinks[1].link = items[0].link;
641
- }
642
- if (
643
- parentLinks[2] &&
644
- parentLinks[2].link === undefined &&
645
- items.length > 0 &&
646
- items[0].link
647
- ) {
648
- parentLinks[2].link = items[0].link;
634
+
635
+ for (let i = 1; i < 10; i++) {
636
+ if (
637
+ parentLinks[i] &&
638
+ parentLinks[i].link === undefined &&
639
+ items.length > 0 &&
640
+ items[0].link
641
+ ) {
642
+ parentLinks[i].link = items[0].link;
643
+ }
649
644
  }
650
645
  }
651
646
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.19.6",
3
+ "version": "0.19.7",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {