From: bangerth Date: Tue, 18 Oct 2011 13:46:17 +0000 (+0000) Subject: Pay attention to the flags set for the stream. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470c99e58342800ec5538e8785e3980fc8af656c;p=dealii-svn.git Pay attention to the flags set for the stream. git-svn-id: https://svn.dealii.org/trunk@24631 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/table_handler.cc b/deal.II/source/base/table_handler.cc index 20e66b5a35..965cc85909 100644 --- a/deal.II/source/base/table_handler.cc +++ b/deal.II/source/base/table_handler.cc @@ -286,12 +286,18 @@ void TableHandler::write_text(std::ostream &out) const // be a bit careful about the case // where the string may be empty, // in which case we'll print it as - // "" + // "". note that ultimately we + // still just << it into the stream + // since we want to use the flags + // of that stream, and the first + // test is only used to determine + // whether the size of the string + // representation is zero { std::ostringstream text; text << column.entries[i].value; if (text.str().size() > 0) - out << text.str(); + out << column.entries[i].value; else out << "\"\""; }