proper workspace.xml cleanup in template projects in PhpStorm

This commit is contained in:
Shaverdova Elena
2016-06-08 20:10:43 +02:00
parent b3e19c0269
commit aed96eb76a
@@ -265,7 +265,7 @@ public class SaveProjectAsTemplateAction extends AnAction {
boolean shouldEncode) throws IOException {
String text = VfsUtilCore.loadText(virtualFile);
if(!shouldEncode){
return text;
return ProjectTemplateFileProcessor.encodeFile(text, virtualFile, project);
}
final FileTemplate template = FileTemplateManager.getInstance(project).getDefaultTemplate(fileHeaderTemplateName);
final String templateText = template.getText();