diff --git a/components/formats-gpl/src/loci/formats/in/OIRReader.java b/components/formats-gpl/src/loci/formats/in/OIRReader.java index b1de177a2b0..0a6b85237ad 100644 --- a/components/formats-gpl/src/loci/formats/in/OIRReader.java +++ b/components/formats-gpl/src/loci/formats/in/OIRReader.java @@ -661,12 +661,12 @@ private void readPixelsFile(String file, RandomAccessInputStream s) throws Forma break; } long fp = s.getFilePointer(); - String xml = s.readString(length).trim(); + String xml = s.readString(length); if (!xml.startsWith(" 0) {