|
[HepData-svn] r1843 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Feb 5 15:33:36 GMT 2015
Author: watt Date: Thu Feb 5 15:33:36 2015 New Revision: 1843 Log: Insert <br/> to enable newlines in table comments for MarcXML formatter Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java Thu Feb 5 15:30:24 2015 (r1842) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java Thu Feb 5 15:33:36 2015 (r1843) @@ -89,8 +89,8 @@ s.append(" <subfield code=\"9\">HEPDATA</subfield>\n") ; s.append(" <subfield code=\"h\">") ; for (String ct : ds.getComments()){ - if(!ct.startsWith("Location:")) { - s.append(ct.replaceFirst("VERBATIM","").replaceAll(">",">").replaceAll("<","<")); + if(!ct.startsWith("Location:")) { + s.append(ct.replaceFirst("VERBATIM","").replaceAll(">",">").replaceAll("<","<").replaceAll("\n","<br/>\n")); } } s.append(" </subfield>\n");
More information about the HepData-svn mailing list |