aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2024-04-13 20:23:02 -0400
committerYour Name <you@example.com>2024-04-13 20:23:02 -0400
commitf909f30cc967bdf4a0f4cb16c47db273cda6ef2b (patch)
tree2bd686c174be0f0f1d4954faccd37d6699777e9e
parent6c516699d7622c9aac91ef5a309b815a5005817b (diff)
downloadlibbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.tar.gz
libbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.tar.bz2
libbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.zip
Fixed issue with indents in the middle of poetry sectionsHEADmaster
-rw-r--r--src/bible.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bible.cc b/src/bible.cc
index 7773732..0179de0 100644
--- a/src/bible.cc
+++ b/src/bible.cc
@@ -328,10 +328,8 @@ int main(int argc, char* argv[]) {
chapter = tex.chapter;
verse = tex.verse;
out << tex.text;
- if(!tex.text.empty() and tex.text.back() == '\n') {
- isNewline = true;
- } else {
- isNewline = false;
+ if(!tex.text.empty()) {
+ isNewline = (tex.text.back() == '\n');
}
if(isJesus) {
out << "\033[0m";