|
[HepData-svn] r1670 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Nov 12 12:00:31 GMT 2013
Author: whalley Date: Tue Nov 12 12:00:31 2013 New Revision: 1670 Log: fixes for > and < signs in comments Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java Tue Nov 12 11:42:15 2013 (r1669) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java Tue Nov 12 12:00:31 2013 (r1670) @@ -46,7 +46,7 @@ cr=cr.replaceAll(">=","≥"); cr=cr.replaceAll("<=","≤"); cr=cr.replaceAll(">",">"); - cr=cr.replaceAll("<=","<"); + cr=cr.replaceAll("<","<"); s.append(" <comment>\n"); s.append(" " + cr + "\n"); s.append(" </comment>\n"); @@ -69,7 +69,7 @@ ct=ct.replaceAll(">=","≥"); ct=ct.replaceAll("<=","≤"); ct=ct.replaceAll(">",">"); - ct=ct.replaceAll("<=","<"); + ct=ct.replaceAll("<","<"); s.append(" <comment>\n"); s.append(" " + ct + "\n"); s.append(" </comment>\n"); @@ -156,6 +156,10 @@ s.append(" </reaction>\n"); } for (String cy : yax.getComments()){ + cy=cy.replaceAll(">=","≥"); + cy=cy.replaceAll("<=","≤"); + cy=cy.replaceAll(">",">"); + cy=cy.replaceAll("<","<"); s.append(" <comment>\n"); s.append(" " + cy + "\n"); s.append(" </comment>\n");
More information about the HepData-svn mailing list |