You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Peter B. West" <pb...@powerup.com.au> on 2001/07/12 17:03:26 UTC
[PATCH][Bug 1053] FixCRLF.java fixcrlf.html Preserve tabs in literals;allow any tab setting;allow CR as EOL
This patch supersedes my previous patches with the same summary line.
This version also addresses Bug 1053 by processing the input files using
a BufferedReader. As in previous versions, it provides the following
extra functionality to FixCRLF:
Allow CR as a line ending
Allow for any tab interval from 2 to 80
Allow for preservation of TAB chars in string and character literals
Process files as character streams, rather than as byte streams
This is not tested against any files sufficiently large to cause memory
problems. In addition, the handling of CTRL-Z EOF markers is not tested
on any systems but linux. This is potentially significant in this
version because lines are being handled by the ReadLine method of
BufferedReader. This handles ^Z as text both within a line and at the
end-of-file.
I have determined that the handling of CTRL-Z in and at the end of files
is the same under NT4, but do not know if this behaviour is consistent
across Win 95/8 and 2000.
The test cases that I posted to this list with the previous version of
the patch are handled identically in this version.
The changes are backward compatible with the behaviour and XML syntax of
the previous version, but extend in for the new EOL handling.
Patches to FixCRLF.java are attached as patch-java.txt
Patches to fixcrlf.html are attached as patch-html.txt.
Peter
--
Peter B. West pbwest@powerup.com.au http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"