]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make sure we don't confuse doxygen by printing /*...*/ comments.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Mar 2006 16:27:47 +0000 (16:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Mar 2006 16:27:47 +0000 (16:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@12625 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/tutorial/chapter-2.step-by-step/program2doxyplain

index dad17123243bdf78d110ad5baf552084706f9495..4e216c2a11d085a029f303f3d650600a13435832 100644 (file)
@@ -4,8 +4,13 @@ print "\n";
 
 
 while (<>) {
-    # simply print non-comment lines and let doxygen do all the work
+    # simply print non-comment lines and let doxygen do all the work.
+    # the only thing we have to make sure is that if we copy /*...*/
+    # comments that doxygen doesn't get confused; do so by simply
+    # adding a space
     if ( ! m!^\s*//! ) {
+        s!/\*!/ \*!g;
+        s!\*/!\* /!g;
        print " * $_";
     } else {
        # for comments, all we do is replace section headers, and

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.