From 470c99e58342800ec5538e8785e3980fc8af656c Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 18 Oct 2011 13:46:17 +0000 Subject: [PATCH] Pay attention to the flags set for the stream. git-svn-id: https://svn.dealii.org/trunk@24631 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/table_handler.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 << "\"\""; } -- 2.39.5