From 3a5975eac4eeee6de77a63941d82f6125b0a69e2 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 5 Jul 2005 19:11:29 +0000 Subject: [PATCH] Fix previous checkin: only issue newlines if there was also text before the sections. git-svn-id: https://svn.dealii.org/trunk@11067 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/parameter_handler.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc index 7211cbb652..a0ecc7d7a6 100644 --- a/deal.II/base/source/parameter_handler.cc +++ b/deal.II/base/source/parameter_handler.cc @@ -981,10 +981,13 @@ ParameterHandler::print_parameters_section (std::ostream &out, } - // if there are sections to come, put two - // newlines between the last entry and the - // first subsection - if (pd->subsections.size() != 0) + // if there was text before and + // there are sections to come, put + // two newlines between the last + // entry and the first subsection + if ((pd->entries.size() != 0) + && + (pd->subsections.size() != 0)) out << std::endl << std::endl; // now transverse subsections tree -- 2.39.5