diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libbible.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libbible.cc b/src/lib/libbible.cc index c9acb7d..c7a4c61 100644 --- a/src/lib/libbible.cc +++ b/src/lib/libbible.cc @@ -256,7 +256,7 @@ vector<libbible::text> libbible::getText(libbible::passage pass) { } } } - endOfParagraph = (text[text.length()-1] == '\n'); + endOfParagraph = ! text.empty() and text.back() == '\n'; } return texts; } |