diff options
author | Your Name <you@example.com> | 2021-08-10 12:29:46 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-10 12:29:46 -0400 |
commit | 350a11b05c6496b3628dd18704b9f7e0b3f29403 (patch) | |
tree | cd406ff9a27113ab0f27386e1051ff4254c7c295 /bible.cc | |
parent | ab2668a4b0e6eebd80668aea9110f6fb86aed5a4 (diff) | |
download | libbible-350a11b05c6496b3628dd18704b9f7e0b3f29403.tar.gz libbible-350a11b05c6496b3628dd18704b9f7e0b3f29403.tar.bz2 libbible-350a11b05c6496b3628dd18704b9f7e0b3f29403.zip |
Fixed handling of titles
Diffstat (limited to 'bible.cc')
-rw-r--r-- | bible.cc | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -244,9 +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; + bool isPreverse = false; for(string modifier : tex.modifiers) { if(modifier == "paragraph") { isParagraph = true; @@ -256,23 +256,15 @@ 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; + } else if (modifier == "preverse") { + isPreverse = 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) { + if(isPreverse or isTitle or isParallel) { // Someday maybe we add this, but for now, omit tex.text = ""; } |