Changeset 4817


Ignore:
Timestamp:
02/18/09 10:23:43 (11 years ago)
Author:
melissa
Message:

One more fix for axis notes with extraneous spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/BioRadReader.java

    r4816 r4817  
    306306      n.p = in.readString(80); 
    307307 
     308      /* debug */ System.out.println("(" + n.type + ") " + n.p); 
     309 
    308310      if (n.type < 0 || n.type >= NOTE_NAMES.length) { 
    309311        notes = false; 
     
    323325      n.p = n.p.substring(0, ndx).trim(); 
    324326 
    325       String[] tokens = n.p.split(" "); 
     327      n.p = n.p.replaceAll("=", ""); 
     328      Vector v = new Vector(); 
     329      StringTokenizer t = new StringTokenizer(n.p, " "); 
     330      while (t.hasMoreTokens()) { 
     331        String token = t.nextToken().trim(); 
     332        if (token.length() > 0) v.add(token); 
     333      } 
     334      String[] tokens = (String[]) v.toArray(new String[0]); 
    326335      try { 
    327336        if (tokens.length > 1) { 
Note: See TracChangeset for help on using the changeset viewer.