mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
PY-25106 Do not trim cell source code on file open
This commit is contained in:
@@ -52,7 +52,7 @@ public class IpnbEditorUtil {
|
||||
public static Editor createPythonCodeEditor(@NotNull final Project project, @NotNull final IpnbCodeSourcePanel codeSourcePanel) {
|
||||
final EditorFactory editorFactory = EditorFactory.getInstance();
|
||||
assert editorFactory != null;
|
||||
final String text = codeSourcePanel.getCell().getSourceAsString().trim();
|
||||
final String text = codeSourcePanel.getCell().getSourceAsString();
|
||||
final Module module = ProjectRootManagerEx.getInstanceEx(project).getFileIndex()
|
||||
.getModuleForFile(codeSourcePanel.getIpnbCodePanel().getFileEditor().getVirtualFile());
|
||||
final IpnbPyFragment fragment = new IpnbPyFragment(project, text, true, codeSourcePanel);
|
||||
|
||||
Reference in New Issue
Block a user