Skip to content

Commit

Permalink
fix: wrong line separators on windows (closes #599)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlrobertoh committed Jun 27, 2024
1 parent 8a7c84a commit cf5f383
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.intellij.openapi.ui.JBMenuItem;
import com.intellij.openapi.ui.JBPopupMenu;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.ColorUtil;
import com.intellij.ui.IdeBorderFactory;
import com.intellij.ui.components.ActionLink;
Expand Down Expand Up @@ -57,7 +58,7 @@ public ResponseEditorPanel(
editor = EditorUtil.createEditor(
project,
findLanguageExtensionMapping(markdownLanguage).getValue(),
code);
StringUtil.convertLineSeparators(code));

var group = new DefaultActionGroup();
group.add(new ReplaceCodeInMainEditorAction());
Expand Down

0 comments on commit cf5f383

Please sign in to comment.