Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java @ 6209:1642e08d14d2
Fix empty column logic in FixAT export
This fixes issue1155
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 05 Jun 2013 18:03:21 +0200 |
parents | 715e010d40de |
children | ee701de9c875 |
comparison
equal
deleted
inserted
replaced
6208:715e010d40de | 6209:1642e08d14d2 |
---|---|
116 log.debug("wcm: " + wcm); | 116 log.debug("wcm: " + wcm); |
117 } | 117 } |
118 | 118 |
119 out.printf(Locale.US, "%8d", wRow); | 119 out.printf(Locale.US, "%8d", wRow); |
120 | 120 |
121 if (wcm > 0) { | 121 for (int i = 0; i < wcm; i++) { |
122 int rest = 10 - wcm; | 122 out.print(ATWriter.EMPTY); |
123 while (rest-- > 0) { | |
124 out.print(ATWriter.EMPTY); | |
125 } | |
126 } | 123 } |
127 | 124 |
128 for (;;) { | 125 for (;;) { |
129 while (wcm++ < 10) { | 126 while (wcm++ < 10) { |
130 if (w > wMax) { | 127 if (w > wMax) { |