mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Insert two spaces before line comment (PY-11901).
This commit is contained in:
@@ -468,6 +468,10 @@ public class PyBlock implements ASTBlock {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (psi2 instanceof PsiComment && !hasLineBreaksBefore(psi2.getNode(), 1)) {
|
||||
return Spacing.createSpacing(2, 0, 0, false, 0);
|
||||
}
|
||||
}
|
||||
return myContext.getSpacingBuilder().getSpacing(this, child1, child2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user