Commit 3948be0b authored by Albert Hofkamp's avatar Albert Hofkamp
Browse files

#344 Avoid trailing whitespace in DSM files.

parent 865a7f7f
Pipeline #3835 failed with stage
in 0 seconds
......@@ -15,6 +15,7 @@ package org.eclipse.escet.common.dsm.io;
import static org.eclipse.escet.common.java.Strings.fmt;
import static org.eclipse.escet.common.java.Strings.spaces;
import static org.eclipse.escet.common.java.Strings.trimRight;
import java.util.Arrays;
......@@ -70,7 +71,7 @@ public class WriteMatrix {
// Write the lines.
for (int i = 0; i < size; i++) {
outHandle.println(lines[i].toString());
outHandle.println(trimRight(lines[i].toString()));
}
}
......@@ -161,7 +162,7 @@ public class WriteMatrix {
int base = group.getShuffledBase();
int size = group.getShuffledSize();
if (base >= 0) {
outHandle.printf(" from %d to %d\n", base + 1, base + size); // 1-based !
outHandle.printf(" from %d to %d%n", base + 1, base + size); // 1-based !
}
for (Group child: group.childGroups) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment