]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix ignoring block comments
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Sep 2010 22:34:33 +0000 (22:34 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Sep 2010 22:34:33 +0000 (22:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@22114 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/doxygen/tutorial/program2plain

index cc08d1a2f0c6b6df87cc5c1282c12d54b83cdb8f..92ca48494ba92151d50d8d31f20310b852e36b1a 100644 (file)
@@ -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;
 }      

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.