bodewig 2003/03/19 00:42:14
Modified: docs/manual/OptionalTasks replaceregexp.html Log: Merge fix for bug 17660 from 1.5 branch Revision Changes Path 1.14 +20 -0 ant/docs/manual/OptionalTasks/replaceregexp.html Index: replaceregexp.html =================================================================== RCS file: /home/cvs/ant/docs/manual/OptionalTasks/replaceregexp.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- replaceregexp.html 31 Jan 2003 12:15:51 -0000 1.13 +++ replaceregexp.html 19 Mar 2003 08:42:14 -0000 1.14 @@ -128,6 +128,26 @@ with "NewProperty" in a properties file, preserving the existing value, in all files ending in <code>.properties</code> in the current directory</p> +<blockquote> +<pre><replaceregexp match="\s+" replace=" " flags="g" byline="true"> + <fileset dir="${html.dir}" includes="**/*.html" /> +</replaceregexp> +</pre></blockquote> +<p>replaces all whitespaces (blanks, tabs, etc) by one blank remaining the +line separator. So with input + +<blockquote> +<pre> +<html> <body> +<<TAB>><h1> T E S T </h1> <<TAB>> +<<TAB>> </body></html> +</pre></blockquote> +would converted to +<pre> +<html> <body> + <h1> T E S T </h1> </body></html> +</pre> + <hr> <p align="center">Copyright © 2001-2003 Apache Software Foundation. All rights Reserved.</p>