aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2024-04-13 20:25:50 -0400
committerYour Name <you@example.com>2024-04-13 20:25:50 -0400
commitd3d53f9ea5f987721a1212233e90c827eb580bea (patch)
treed7b2b2fe344c09307a150d299c312af8410b2784
parent0f69886f77696c34c3093b981950dc194e4ecd18 (diff)
downloadbiblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.tar.gz
biblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.tar.bz2
biblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.zip
Fixed issue with indents in the middle of poetry sectionsHEADmaster
-rw-r--r--src/readerview.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/readerview.cc b/src/readerview.cc
index 35444cf..f67c962 100644
--- a/src/readerview.cc
+++ b/src/readerview.cc
@@ -180,10 +180,8 @@ void ReaderView::refresh() {
} else {
iter = buf->insert_with_tags(iter, tex.text, tags);
}
- if(!tex.text.empty() and tex.text.back() == '\n') {
- isNewline = true;
- } else {
- isNewline = false;
+ if(!tex.text.empty()) {
+ isNewline = (tex.text.back() == '\n');
}
}
}