Change file's package to match directory: add space after package keyword if needed

#KT-39604 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-07-14 12:21:04 +09:00
committed by Ilya Kirillov
parent 1ce39222e3
commit 1188f4617a
5 changed files with 17 additions and 0 deletions
@@ -137,6 +137,7 @@ public class KtPackageDirective extends KtModifierListOwnerStub<KotlinPlaceHolde
PsiElement keyword = getPackageKeyword();
if (keyword != null) {
addAfter(newExpression, keyword);
addAfter(psiFactory.createWhiteSpace(), keyword);
return;
}