changeset 4911:da89bb3243d3

Fixed CR and LF in header of AT export.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 30 Jan 2013 15:14:07 +0100 (2013-01-30)
parents a707ef048188
children 94b95e002fb9
files flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Wed Jan 30 14:42:17 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Wed Jan 30 15:14:07 2013 +0100
@@ -111,11 +111,12 @@
         String      river,
         double      km
     ) {
-        out.println(Resources.getMsg(
+        out.print(Resources.getMsg(
             callMeta,
             I18N_AT_HEADER,
             I18N_AT_HEADER,
             new Object[] { river, km } ));
+        out.print("\r\n");
     }
 
 
@@ -127,7 +128,7 @@
         // a header is required, because the desktop version of FLYS will skip
         // the first row.
         printHeader(out, meta, river, km);
-        out.print("\r");
+
         double rest = (minW * 100.0) % 10.0;
 
         double startW = Math.rint((minW - rest*0.01)*10.0)*0.1;

http://dive4elements.wald.intevation.org