node-sword-interface 1.0.5 → 1.0.6

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.5",
3
+ "version": "1.0.6",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -131,6 +131,8 @@ vector<Verse> ModuleSearch::getModuleSearchResults(string moduleName,
131
131
  }
132
132
 
133
133
  bool hasStrongs = this->_moduleHelper.moduleHasGlobalOption(module, "Strongs");
134
+ bool moduleMarkupIsBroken = this->_moduleHelper.isBrokenMarkupModule(moduleName);
135
+ bool hasInconsistentClosingEndDivs = this->_moduleHelper.isInconsistentClosingEndDivModule(moduleName);
134
136
 
135
137
  if (searchType == SearchType::strongsNumber) {
136
138
  if (!hasStrongs) {
@@ -163,7 +165,11 @@ vector<Verse> ModuleSearch::getModuleSearchResults(string moduleName,
163
165
  while (!listKey.popError()) {
164
166
  module->setKey(listKey.getElement());
165
167
 
166
- string verseText = this->_textProcessor.getCurrentVerseText(module, hasStrongs);
168
+ string verseText = this->_textProcessor.getCurrentVerseText(module,
169
+ hasStrongs,
170
+ hasInconsistentClosingEndDivs,
171
+ moduleMarkupIsBroken);
172
+
167
173
  string currentReference = module->getKey()->getShortText();
168
174
 
169
175
  if (std::find(searchResultReferences.begin(),