diff options
author | Your Name <you@example.com> | 2024-04-13 20:23:02 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2024-04-13 20:23:02 -0400 |
commit | f909f30cc967bdf4a0f4cb16c47db273cda6ef2b (patch) | |
tree | 2bd686c174be0f0f1d4954faccd37d6699777e9e | |
parent | 6c516699d7622c9aac91ef5a309b815a5005817b (diff) | |
download | libbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.tar.gz libbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.tar.bz2 libbible-f909f30cc967bdf4a0f4cb16c47db273cda6ef2b.zip |
-rw-r--r-- | src/bible.cc | 6 |
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"; |