fix parsing of embl entries like S75919 which have feature properties with no values
authorjprocter <Jim Procter>
Wed, 31 Oct 2007 15:07:08 +0000 (15:07 +0000)
committerjprocter <Jim Procter>
Wed, 31 Oct 2007 15:07:08 +0000 (15:07 +0000)
src/jalview/datamodel/xdb/embl/EmblEntry.java

index 9d12ccf..59320f7 100644 (file)
@@ -534,7 +534,17 @@ public class EmblEntry
         else
         {
           // throw anything else into the additional properties hash
-          vals.put(q.getName(), q.getValues().toString());
+          String[] s= q.getValues();
+          StringBuffer sb = new StringBuffer();
+          if (s!=null)
+          {
+            for (int i=0; i<s.length; i++)
+            {
+              sb.append(s[i]);
+              sb.append("\n");
+            }
+          }
+          vals.put(q.getName(), sb.toString());
         }
       }
     }