ref #6318 Replace LF and CR from description text with space (" ")
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 7 May 2018 09:33:50 +0000 (11:33 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 7 May 2018 09:33:50 +0000 (11:33 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveLabelProvider.java

index 34efde70b7703295dbd5447268f81049521cd297..8ed1897333b7202225e902928231b1208be445e3 100644 (file)
@@ -26,7 +26,7 @@ public class DescriptiveLabelProvider extends ColumnLabelProvider implements ISt
        @Override
     public String getText(Object element) {
                String text = DescriptionHelper.getLabel(element);
-               text = text.replaceAll("[\\r\\n]", ""); //$NON-NLS-1$ //$NON-NLS-2$
+               text = text.replaceAll("[\\r\\n]", " "); //$NON-NLS-1$ //$NON-NLS-2$
                if(text.length()>MAX_LENGTH){
                    text = text.substring(0, MAX_LENGTH)+TRUNCATE_SIGN;
                }