Project

General

Profile

Revision 530b3394

ID530b33941b6516d416d18966f4af157c06edfb48
Parent 0d330678
Child 72b0e291

Added by Andreas Kohlbecker about 3 years ago

ref #7666 NARROW NO-BREAK in UTF8 class

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/UTF8.java
32 32
	ACUTE_ACCENT("\u00B4"),     //Acute Accent, looks a bit similar to th single quotation mark
33 33
	BLACK_CIRCLE("\u25CF"),       //Black circle, symbol for endemic
34 34
	DEGREE_SIGN("\u00B0"),      //°
35
	NARROW_NO_BREAK("\u202F")
35 36
	;
36 37

  
37 38
	private String value;
cdmlib-model/src/main/java/eu/etaxonomy/cdm/format/taxon/TaxonRelationshipFormatter.java
14 14
import org.codehaus.plexus.util.StringUtils;
15 15

  
16 16
import eu.etaxonomy.cdm.common.CdmUtils;
17
import eu.etaxonomy.cdm.common.UTF8;
17 18
import eu.etaxonomy.cdm.model.agent.Person;
18 19
import eu.etaxonomy.cdm.model.agent.Team;
19 20
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
......
38 39
 */
39 40
public class TaxonRelationshipFormatter {
40 41

  
42
    /**
43
     *
44
     */
45
    private static final String DOUBTFUL_TAXON_MARKER = "?" + UTF8.NARROW_NO_BREAK;
41 46
    private static final String REL_SEC = ", rel. sec. ";
42 47
    private static final String ERR_SEC = ", err. sec. ";
43 48
    private static final String SYN_SEC = ", syn. sec. ";
......
70 75
            return null;
71 76
        }
72 77

  
73
        String doubtfulTaxonStr = relatedTaxon.isDoubtful() ? "?\u202F" : "";
78
        String doubtfulTaxonStr = relatedTaxon.isDoubtful() ? DOUBTFUL_TAXON_MARKER : "";
74 79
        String doubtfulRelationStr = taxonRelationship.isDoubtful() ? "?" : "";
75 80

  
76 81

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)