File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/kotlin/com/github/xepozz/php_dump/panel Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import com.intellij.openapi.fileEditor.FileEditorManager
2323import com.intellij.openapi.project.Project
2424import com.intellij.openapi.ui.SimpleToolWindowPanel
2525import com.intellij.psi.PsiDocumentManager
26+ import com.intellij.util.asSafely
2627import com.jetbrains.php.lang.PhpFileType
2728import kotlinx.coroutines.CoroutineScope
2829import kotlinx.coroutines.Dispatchers
@@ -170,7 +171,10 @@ class OpcodesTerminalPanel(
170171 CoroutineScope (Dispatchers .IO ).launch {
171172 val result = service.dump(virtualFile)
172173
173- val content = result as ? String ? : " No output"
174+ val content = result
175+ .asSafely<String >()
176+ ?.replace(" \r\n " , " \n " )
177+ ? : " No output"
174178
175179 withContext(Dispatchers .EDT ) {
176180 setDocumentText(project, content)
You can’t perform that action at this time.
0 commit comments