mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[formatter/TextRegionToString] fixed an indentation bug
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
This commit is contained in:
parent
173450d637
commit
d12a761542
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue