mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[formatter/TextRegionToString] make sure there is a trailing space
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
This commit is contained in:
parent
d12a761542
commit
e04506c903
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ public class TextRegionAccessToString {
|
|||
|
||||
protected String toString(IEObjectRegion region) {
|
||||
EObject obj = region.getSemanticElement();
|
||||
StringBuilder builder = new StringBuilder(Strings.padEnd(toClassWithName(obj), textWidth + 1, ' '));
|
||||
StringBuilder builder = new StringBuilder(Strings.padEnd(toClassWithName(obj), textWidth, ' ') + " ");
|
||||
EObject element = region.getGrammarElement();
|
||||
if (element instanceof AbstractElement)
|
||||
builder.append(grammarToString.apply((AbstractElement) element));
|
||||
|
|
Loading…
Reference in a new issue