Insert two spaces before line comment (PY-11901).

This commit is contained in:
Dmitry Trofimov
2014-01-22 21:01:34 +01:00
parent e04ba6617a
commit 56c1793f3f
@@ -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);
}