node-sword-interface 0.251.0 → 0.252.0
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
|
@@ -138,6 +138,14 @@ string TextProcessor::getFilteredText(const string& text, int chapter, int verse
|
|
|
138
138
|
secHead << "chapter=\"" << chapter << "\"";
|
|
139
139
|
this->findAndReplaceAll(filteredText, secHeadClassFilter, secHead.str());
|
|
140
140
|
|
|
141
|
+
if (filteredText.find("subType=\"x-Chapter") != string::npos ||
|
|
142
|
+
filteredText.find("type=\"chapter") != string::npos) {
|
|
143
|
+
|
|
144
|
+
static string swordSectionTitle = "sword-section-title";
|
|
145
|
+
static string swordSectionTitleChapter = "sword-section-title sword-chapter-title";
|
|
146
|
+
this->findAndReplaceAll(filteredText, swordSectionTitle, swordSectionTitleChapter);
|
|
147
|
+
}
|
|
148
|
+
|
|
141
149
|
this->findAndReplaceAll(filteredText, titleEndElementFilter, "</div>");
|
|
142
150
|
this->findAndReplaceAll(filteredText, segStartElementFilter, "");
|
|
143
151
|
this->findAndReplaceAll(filteredText, segEndElementFilter, "");
|