[Dive4elements-commits] [PATCH 1 of 3] Fix cr/nl in ATWriter

Wald Commits scm-commit at wald.intevation.org
Thu Jan 31 20:15:22 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1359659377 -3600
# Node ID 7669747d22f2d591e7dc7aa283fcf663f26caa64
# Parent  fdb2dce68322215389b28844f2b277ee34303d63
Fix cr/nl in ATWriter.

diff -r fdb2dce68322 -r 7669747d22f2 flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Thu Jan 31 19:48:43 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Thu Jan 31 20:09:37 2013 +0100
@@ -6,7 +6,6 @@
 import java.math.BigDecimal;
 
 import java.text.DateFormat;
-import java.util.Calendar;
 import java.util.Date;
 import java.util.Locale;
 
@@ -136,7 +135,6 @@
         String      river,
         double      km
     ) {
-        DateFormat f = DateFormat.getDateInstance();
         out.print(Resources.getMsg(
             callMeta,
             I18N_AT_HEADER,
@@ -190,14 +188,13 @@
             }
 
             if (++col >= COLUMNS) {
-                out.print("\r");
-                out.println();
+                out.print("\r\n");
                 col = 0;
             }
         }
 
         if (col > 0) {
-            out.println();
+            out.print("\r\n");
         }
 
         out.flush();


More information about the Dive4elements-commits mailing list