about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-06-05 15:26:37 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-06-05 15:26:37 -0400
commit6419bd20050441fbcedce2cb3b5cffbdaba2a9b8 (patch)
treecec941567f42e0fc322157ad1a82a8b6e04fe918
parent86fcf4df1cbc231e10f6a15bb6117ce2590f3666 (diff)
downloadrawr-ebooks-6419bd20050441fbcedce2cb3b5cffbdaba2a9b8.tar.gz
rawr-ebooks-6419bd20050441fbcedce2cb3b5cffbdaba2a9b8.tar.bz2
rawr-ebooks-6419bd20050441fbcedce2cb3b5cffbdaba2a9b8.zip
Fixed final closing delimiters appearing on new line
-rw-r--r--kgramstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index cb63db6..426603f 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp
@@ -746,7 +746,7 @@ std::string rawr::randomSentence(int maxL)
746 } 746 }
747 747
748 // Remove the trailing space 748 // Remove the trailing space
749 if (result.back() == ' ') 749 if (result.back() == ' ' || result.back() == '\n')
750 { 750 {
751 result.pop_back(); 751 result.pop_back();
752 } 752 }