ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Proposed fix for ReplaceRegExp.java
Date Thu, 04 Jul 2002 11:59:47 GMT
On Wed, 26 Jun 2002, Diane Holt <holtdl@yahoo.com> wrote:

> To get it to delete the line if the result is empty involves just a
> small change:

Which would also strip all blank lines from the original file.  Don't
do that to my LaTeX files. 8-)

You should probably test whether the line has been blank before it has
been passed through doReplace - and you will want to add an attribute
to control the behavior.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message