Skip to content

Commit

Permalink
RESOLVED - issue BATCH-1320: New line special character in Header
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jul 7, 2009
1 parent 373cf71 commit 456c169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -259,7 +259,7 @@ private void doOpen(ExecutionContext executionContext) throws ItemStreamExceptio
if (headerCallback != null) {
try {
headerCallback.writeHeader(outputState.outputBufferedWriter);
outputState.write("\n");
outputState.write(lineSeparator);
}
catch (IOException e) {
throw new ItemStreamException("Could not write headers. The file may be corrupt.", e);
Expand Down
Expand Up @@ -85,6 +85,7 @@ public void setUp() throws Exception {
outputFile = File.createTempFile("flatfile-test-output-", ".tmp");

writer.setResource(new FileSystemResource(outputFile));
writer.setLineSeparator("\n");
writer.setLineAggregator(new PassThroughLineAggregator<String>());
writer.afterPropertiesSet();
writer.setSaveState(true);
Expand Down

0 comments on commit 456c169

Please sign in to comment.