Revision c9431ec7
Added by Andreas Müller over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/NameHelper.java | ||
---|---|---|
52 | 52 |
public static String getDisplayNameWithRef(TaxonBase taxonBase) { |
53 | 53 |
TaxonNameBase name = (TaxonNameBase) HibernateProxyHelper.deproxy(taxonBase.getName()); |
54 | 54 |
if (name != null) { |
55 |
return name.generateFullTitle(); |
|
55 |
String fullTitle = name.generateFullTitle(); |
|
56 |
if (fullTitle != null){ //should never be null |
|
57 |
fullTitle = fullTitle.replaceAll("(\\r|\\n|\\r\\n)", ""); //replaces LineBreaks, maybe we should include U+000C, U+0085, U+2028, U+2029 which are also linebreaks according to UNICODE stardard. |
|
58 |
} |
|
59 |
return fullTitle; |
|
56 | 60 |
} |
57 | 61 |
return ""; |
58 | 62 |
} |
Also available in: Unified diff
fix linebreak problem for imported names #3798