Don't print empty streams

This commit is contained in:
Markus Gans 2018-10-29 23:10:48 +01:00
parent d35c3c0cdc
commit 4d42804059
1 changed files with 4 additions and 1 deletions

View File

@ -570,7 +570,10 @@ inline FVTerm& FVTerm::operator << (const type& s)
{ {
std::wostringstream outstream; std::wostringstream outstream;
outstream << s; outstream << s;
print (outstream.str());
if ( ! outstream.str().empty() )
print (outstream.str());
return *this; return *this;
} }