diff options
author | Your Name <you@example.com> | 2021-08-09 16:40:24 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-09 16:40:24 -0400 |
commit | ab2668a4b0e6eebd80668aea9110f6fb86aed5a4 (patch) | |
tree | bcffb10053a4080d87a2870ad23bc8bcc11cb4f1 /bible.cc | |
parent | 41e9b6128ed8588c01d2aa2fb7d71af81709873e (diff) | |
download | libbible-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.cc | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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) { |