From d3d53f9ea5f987721a1212233e90c827eb580bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 13 Apr 2024 20:25:50 -0400 Subject: Fixed issue with indents in the middle of poetry sections --- src/readerview.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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'); } } } -- cgit v1.2.3