mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-86633 Javadoc copy puts a non-lower-ascii character on the clipboard
symbols are replaced by raw white spaces at the copied javadoc text now
This commit is contained in:
+3
-1
@@ -328,7 +328,9 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr
|
||||
@Override
|
||||
public Object getData(@NonNls String dataId) {
|
||||
if (DocumentationManager.SELECTED_QUICK_DOC_TEXT.getName().equals(dataId)) {
|
||||
return myEditorPane.getSelectedText();
|
||||
// Javadocs often contain symbols (non-breakable white space). We don't want to copy them as is and replace
|
||||
// with raw white spaces. See IDEA-86633 for more details.
|
||||
return myEditorPane.getSelectedText().replace((char)160, ' ');
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user