From: wolf Date: Fri, 23 Mar 2001 08:55:50 +0000 (+0000) Subject: Ignore comments at the beginning of the program altogether, i.e. copyright notices... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b782523dbb17ce64de5b51ff1279da547bd1fd9;p=dealii-svn.git Ignore comments at the beginning of the program altogether, i.e. copyright notices and CVS tags, not only the latter. git-svn-id: https://svn.dealii.org/trunk@4275 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/program2html b/deal.II/doc/tutorial/chapter-2.step-by-step/program2html index 40feee80e4..6e3c359e2c 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/program2html +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/program2html @@ -3,9 +3,10 @@ print "\n"; print "

The commented program

\n"; -# ignore cvs tag +# ignore comments at the start of the program. this includes CVS +# tags and copyright notices. $_ = <>; -while ( m!^/[/\*]+\s*.Id:!) { +while ( m!^/[/\*]!) { $_ = <>; } @@ -18,9 +19,6 @@ $state = $comment_mode; print "

\n"; while (<>) { - # ignore cvs tag - next if m!^/[/\*]+\s*.Id:!; - # substitute special characters s/&/&/g; s/