Project

General

Profile

Revision baff86ea

IDbaff86ea69bdf52667b8ab645d4474a88fecdbfe
Parent aecd96e4
Child b51ccdd4

Added by Patrick Plitzner about 2 years ago

ref #6318 Replace LF and CR from description text with space (" ")

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveLabelProvider.java
26 26
	@Override
27 27
    public String getText(Object element) {
28 28
		String text = DescriptionHelper.getLabel(element);
29
		text = text.replaceAll("[\\r\\n]", ""); //$NON-NLS-1$ //$NON-NLS-2$
29
		text = text.replaceAll("[\\r\\n]", " "); //$NON-NLS-1$ //$NON-NLS-2$
30 30
		if(text.length()>MAX_LENGTH){
31 31
		    text = text.substring(0, MAX_LENGTH)+TRUNCATE_SIGN;
32 32
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)