From 350a11b05c6496b3628dd18704b9f7e0b3f29403 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Aug 2021 12:29:46 -0400 Subject: Fixed handling of titles --- bible.cc | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'bible.cc') diff --git a/bible.cc b/bible.cc index ef9c1e4..943d6d0 100644 --- a/bible.cc +++ b/bible.cc @@ -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 = ""; } -- cgit v1.2.3