[Dive4elements-commits] [PATCH 1 of 2] Insert CR at the of each line in AT-extport
Wald Commits
scm-commit at wald.intevation.org
Wed Jan 30 14:42:44 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1359553168 -3600
# Node ID 67bbcee26e21dcb34e4a58bc1271fcfa57ec645f
# Parent ce92ea1dd1018f5a851a325605d71f8012a06402
Insert CR at the of each line in AT-extport.
diff -r ce92ea1dd101 -r 67bbcee26e21 flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java Wed Jan 30 12:40:53 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java Wed Jan 30 14:39:28 2013 +0100
@@ -127,7 +127,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;
@@ -151,6 +151,7 @@
}
if (++col >= COLUMNS) {
+ out.print("\r");
out.println();
col = 0;
}
More information about the Dive4elements-commits
mailing list