Skip to content

Commit

Permalink
Fixed #13 - template's wrong line separator
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jul 8, 2014
1 parent 3fd8637 commit a57acd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected void run(@NotNull Result<PsiFile> result) throws Throwable {
}
Document document = PsiDocumentManager.getInstance(project).getDocument(file);
if (document != null) {
document.insertString(document.getTextLength(), "\n" + content);
document.insertString(document.getTextLength(), "\n" + content.replace("\r", ""));
PsiDocumentManager.getInstance(project).commitDocument(document);
}
}
Expand Down

0 comments on commit a57acd4

Please sign in to comment.