hdoc-tools 0.18.6 → 0.18.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-build.js +6 -5
  2. package/package.json +1 -1
package/hdoc-build.js CHANGED
@@ -447,12 +447,12 @@
447
447
  }
448
448
  if (pdf_size > 0) pdf_created++;
449
449
 
450
- if (inline_content) html_txt = `${fm_header_content}\n${html_txt}`;
451
- else html_txt = `${fm_header_content}\n${doc_header}\n${html_txt}`;
452
-
453
450
  // Wrap h2 and h3 tags, plus content, in id'd divs
454
451
  html_txt = hdoc.wrapHContent(html_txt);
455
452
 
453
+ if (inline_content) html_txt = `${fm_header_content}\n${html_txt}`;
454
+ else html_txt = `${fm_header_content}\n${doc_header}\n${html_txt}`;
455
+
456
456
  let relative_path = file_path.relativePath;
457
457
  if (
458
458
  !bc[relative_path.replace(".html", "")] &&
@@ -808,11 +808,12 @@
808
808
  }
809
809
  if (pdf_size > 0) pdf_created++;
810
810
 
811
+ // Wrap h2 and h3 tags, plus content, in id'd divs
812
+ html_txt = hdoc.wrapHContent(html_txt);
813
+
811
814
  if (inline_content) html_txt = `${fm_header}\n${html_txt}`;
812
815
  else html_txt = `${fm_header}\n${doc_header}\n${html_txt}`;
813
816
 
814
- // Wrap h2 and h3 tags, plus content, in id'd divs
815
- html_txt = hdoc.wrapHContent(html_txt);
816
817
 
817
818
  // Save HTML into HTML file
818
819
  const target_file = file_path.path.replace(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.18.6",
3
+ "version": "0.18.7",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {