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/06/28 15:51:22 UTC

[PATCH][2ND CORRECTION] FixCRLF.java fixcrlf.html Preserve tabs in literals;allow any tab setting;allow CR as EOL

This is the third attempt to get this patch right. Grovelling apologies.
I have been caught in a file versioning quagmire.

PLEASE DO NOT APPLY THE TWO PRECEDING PATCHES.

Attached in an accompanying posting are a series of tests of the
functionality and backward compatibility of the patch.  The tests are
not exhaustive.  Notably absent are tests for ASIS and REMOVE on
files with multiple ^Z chars at EOF, and tests of EOL changes to
CR-CR-LF triples.

These extensions to FixCRLF.java provide the following functionality:

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

Corresponding changes to fixcrlf.html.

Note that the patchfile contains both sets of changes even though they
are in different directories.

Peter
-- 
Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"