From: kanschat Date: Tue, 21 Sep 2010 22:34:33 +0000 (+0000) Subject: fix ignoring block comments X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dec5a9a65ce55234f33d1bec2b08f479da71df8;p=dealii-svn.git fix ignoring block comments git-svn-id: https://svn.dealii.org/trunk@22114 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/doxygen/tutorial/program2plain b/deal.II/doc/doxygen/tutorial/program2plain index cc08d1a2f0..92ca48494b 100644 --- a/deal.II/doc/doxygen/tutorial/program2plain +++ b/deal.II/doc/doxygen/tutorial/program2plain @@ -21,10 +21,11 @@ while (<>) { next if (m!^\s*//!); if (s!^\s*/\*.*\*/!!g) { - print unless m/^\s*$/; + print unless (m/^\s*$/); + next; } #Find begin of block comment - if (0 && s!/\*.*!!) + if (s!/\*.*!!) { $block_comment = 1; # Print unless empty @@ -40,8 +41,8 @@ while (<>) { $block_comment = 0; # Print unless empty print unless m/^\s*$/; - next; } + next; } print; }