[Dive4elements-commits] [PATCH 1 of 2] Fixed CR and LF in header of AT export
Wald Commits
scm-commit at wald.intevation.org
Wed Jan 30 15:14:57 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1359555247 -3600
# Node ID da89bb3243d378c3bf0a536e31651147643c5501
# Parent a707ef0481886780e96ad476678161fb582ef9f8
Fixed CR and LF in header of AT export.
diff -r a707ef048188 -r da89bb3243d3 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 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;
More information about the Dive4elements-commits
mailing list