]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix previous checkin: only issue newlines if there was also text
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jul 2005 19:11:29 +0000 (19:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jul 2005 19:11:29 +0000 (19:11 +0000)
before the sections.

git-svn-id: https://svn.dealii.org/trunk@11067 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 7211cbb652262b3664260003597eb7840f43ce68..a0ecc7d7a69dfce244d6fb4783478201ec103675 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.