aboutsummaryrefslogtreecommitdiff
path: root/bible.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-08-09 16:40:24 -0400
committerYour Name <you@example.com>2021-08-09 16:40:24 -0400
commitab2668a4b0e6eebd80668aea9110f6fb86aed5a4 (patch)
treebcffb10053a4080d87a2870ad23bc8bcc11cb4f1 /bible.cc
parent41e9b6128ed8588c01d2aa2fb7d71af81709873e (diff)
downloadlibbible-ab2668a4b0e6eebd80668aea9110f6fb86aed5a4.tar.gz
libbible-ab2668a4b0e6eebd80668aea9110f6fb86aed5a4.tar.bz2
libbible-ab2668a4b0e6eebd80668aea9110f6fb86aed5a4.zip
Fixed processing of non-span xhtml formatting tags
Diffstat (limited to 'bible.cc')
-rw-r--r--bible.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/bible.cc b/bible.cc
index d50d7e9..ef9c1e4 100644
--- a/bible.cc
+++ b/bible.cc
@@ -244,6 +244,9 @@ int main(int argc, char* argv[]) {
bool isIndent = false;
bool isDivineName = false;
bool isJesus = false;
+ bool isFootnote = false;
+ bool isTitle = false;
+ bool isParallel = false;
for(string modifier : tex.modifiers) {
if(modifier == "paragraph") {
isParagraph = true;
@@ -253,8 +256,26 @@ int main(int argc, char* argv[]) {
isDivineName = true;
} else if (modifier == "wordsOfJesus") {
isJesus = true;
+ } else if (modifier == "n") {
+ isFootnote = true;
+ } else if (modifier == "title") {
+ isTitle = true;
+ } else if (modifier == "parallel") {
+ isParallel = true;
}
}
+ if(isFootnote) {
+ // Someday maybe we add this, but for now, omit
+ tex.text = "";
+ }
+ if(isTitle) {
+ // Someday maybe we add this, but for now, omit
+ tex.text = "";
+ }
+ if(isParallel) {
+ // Someday maybe we add this, but for now, omit
+ tex.text = "";
+ }
if(isIndent) {
isParagraph = false;
if(isNewline) {