Fix transcript destroying the previous message if a message consisting solely of spaces is printed

This commit is contained in:
2014-12-14 21:29:03 -05:00
parent 1ad2cf85ac
commit 85e582f32e

View File

@@ -1271,6 +1271,8 @@ void add_string_to_buf(std::string str, unsigned short indent)
return;
if(str == "") return;
if(str.find_last_not_of(' ') == std::string::npos)
return;
if(indent && str.find_last_not_of(' ') > 48) {
if(indent > 20) indent = 20;