Jtextpane will lose line breaks when pasting text?
已回答
Hi,
If I paste (CTRL+V) a multi-line text into JTextPane, it always pastes it into a single line replacing any type of EOL to spaces. But If I use the JTextPane outside the intellij framework, everything works as expected.
What should I do? Here are some screenshots.
https://sm.ms/image/jlY4cPXFQtEDSG9
请先登录再写评论。
Hi,
It's hard to tell what the reason is. I suggest debugging
com.intellij.platform.impl.toolkit.IdeClipboard
class and implementations ofcom.intellij.openapi.ide.CopyPasteManager
.I'm going to give it a try now
Thank you.