Java clipboard is not shared with system

I have an JEditorPane field formatted as HTML and when I’m copying it to clipboard the system is losing all the line breaks. Text inside JEditorPane : &…