summary refs log tree commit diff
diff options
context:
space:
mode:
authorlogin0002019-09-24 02:01:34 +1000
committerGitHub2019-09-24 02:01:34 +1000
commitbc0ab5dd6bdcf80e1bf72d7b0acce9614b71decd (patch)
treed40b0bc6e2fd682da089327c116b09e97f8732e8
parent84058f240af77f53c490e3deb6de931f532882ef (diff)
Stylistic update to "Last <n> messages"
When there are fewer than <n> messages in total, and one runs "tcoin -m <n>", an extra newline was shown between "Last <n> messages:" and the actual messages. This commit fixes that by checking if the first character in the actual messages is a newline and putting one more newline only if it isn't (instead of always).
-rw-r--r--tcoin.cpp0
1 files changed, 0 insertions, 0 deletions
diff --git a/tcoin.cpp b/tcoin.cpp
index 5aad518..edc5ff7 100644
--- a/tcoin.cpp
+++ b/tcoin.cpp