node-sword-interface 1.0.50 → 1.0.51

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -243,9 +243,13 @@ string TextProcessor::getCurrentChapterHeading(sword::SWModule* module)
243
243
  }
244
244
 
245
245
  if (this->_markupEnabled && !this->_rawMarkupEnabled) {
246
- // The chapter headings in the ISV are screwed up somehow for 1:1
247
- // Therefore we do not render chapter headings for the first verse of the book in this case.
248
- if (currentChapter == 1 && currentVerseNr == 1 && currentModuleName == "ISV") {
246
+ if (currentModuleName == "ISV" && currentChapter == 1 && currentVerseNr == 1) {
247
+ // The chapter headings in the ISV (International Standard Version) are screwed up somehow for 1:1
248
+ // Therefore we do not render chapter headings for the first verse of the book in this case.
249
+ chapterHeading = "";
250
+ } else if (currentModuleName == "AB" && currentVerseNr == 1) {
251
+ // The AB module (Apostle's Bible) has broken chapter headings for X:1
252
+ // Therefore we do not render chapter headings for the first verse of the chapter in this case.
249
253
  chapterHeading = "";
250
254
  } else {
251
255
  chapterHeading = this->getFilteredText(chapterHeading, currentChapter, currentVerseNr);