From 7deabb5caba573fc13e920083337e0ec5f939709 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 19 Mar 2003 08:42:14 +0000 Subject: [PATCH] Merge fix for bug 17660 from 1.5 branch git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274278 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/replaceregexp.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/manual/OptionalTasks/replaceregexp.html b/docs/manual/OptionalTasks/replaceregexp.html index 93017106c..f7fe649be 100644 --- a/docs/manual/OptionalTasks/replaceregexp.html +++ b/docs/manual/OptionalTasks/replaceregexp.html @@ -128,6 +128,26 @@ value, in the file ${src}/build.properties

with "NewProperty" in a properties file, preserving the existing value, in all files ending in .properties in the current directory

+
+
<replaceregexp match="\s+" replace=" " flags="g" byline="true">
+    <fileset dir="${html.dir}" includes="**/*.html" />
+</replaceregexp>
+
+

replaces all whitespaces (blanks, tabs, etc) by one blank remaining the +line separator. So with input + +

+
+<html>    <body>
+<<TAB>><h1>    T E S T   </h1>  <<TAB>>    
+<<TAB>> </body></html>
+
+would converted to +
+<html> <body>
+ <h1> T E S T </h1> </body></html>
+
+

Copyright © 2001-2003 Apache Software Foundation. All rights Reserved.