[formatter/TextRegionToString] fixed an indentation bug

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
This commit is contained in:
Moritz Eysholdt 2016-04-08 11:25:02 +02:00
parent 173450d637
commit d12a761542

View file

@ -76,7 +76,7 @@ public class TextRegionListToString {
result.add(offset + " " + length + " " + lines[0]);
} else {
String offsetSpace = Strings.repeat(" ", offsetDigits);
String lengthSpace = Strings.repeat(" ", offsetDigits);
String lengthSpace = Strings.repeat(" ", lengthDigits);
for (int i = 0; i < lines.length; i++) {
String first = i == 0 ? offset : offsetSpace;
String second = i == lines.length - 1 ? length : lengthSpace;