diff options
Diffstat (limited to 'src/bible.cc')
-rw-r--r-- | src/bible.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bible.cc b/src/bible.cc index 4da2326..c2d93b1 100644 --- a/src/bible.cc +++ b/src/bible.cc @@ -308,7 +308,7 @@ int main(int argc, char* argv[]) { chapter = tex.chapter; verse = tex.verse; out << tex.text; - if(tex.text.back() == '\n') { + if(!tex.text.empty() and tex.text.back() == '\n') { isNewline = true; } else { isNewline = false; |