From: <ha...@us...> - 2014-04-08 19:09:19
|
Revision: 19618 http://sourceforge.net/p/jmol/code/19618 Author: hansonr Date: 2014-04-08 19:09:12 +0000 (Tue, 08 Apr 2014) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/dssr/DSSRParser.java Modified: trunk/Jmol/src/org/jmol/dssr/DSSRParser.java =================================================================== --- trunk/Jmol/src/org/jmol/dssr/DSSRParser.java 2014-04-08 18:44:53 UTC (rev 19617) +++ trunk/Jmol/src/org/jmol/dssr/DSSRParser.java 2014-04-08 19:09:12 UTC (rev 19618) @@ -484,11 +484,12 @@ String info = ""; while (isHeader(rd())) { int pt = line.indexOf("["); - if (line.indexOf("bp_pars:") >= 0) { + line = PT.rep(line, "_pars", "-pars"); + if (line.indexOf("bp-pars:") >= 0) { addArray(data, "bpPar", PT.parseFloatArray(line.substring(pt + 1))); - } else if (line.indexOf("heli_pars:") >= 0) { + } else if (line.indexOf("heli-pars:") >= 0) { addArray(data, "helixPar", PT.parseFloatArray(line.substring(pt + 1))); - } else if (line.indexOf("step_pars:") >= 0) { + } else if (line.indexOf("step-pars:") >= 0) { addArray(data, "stepPar", PT.parseFloatArray(line.substring(pt + 1))); } else if ((pt = line.indexOf("h-rise=")) >= 0) { addFloat(data, "rise_h", pt + 7); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |