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:
Denis.Zhdanov
2012-06-05 15:13:15 +04:00
parent 987f737e9e
commit b27e6a4ecc
@@ -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;