+2002-04-07 Herbert Voss <voss@perce.de>
+
+ * filetools.C: fix bug for eps. scans now a whole line
+
2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
* lyxstring.C (operator>>): use the better solution, this fixes a
// TGIF %TGIF...
// TIFF II... or MM...
// XBM ..._bits[]...
-// XPM /* XPM */
+// XPM /* XPM */ sometimes missing (f.ex. tgif-export)
+// ...static char *...
// XWD \000\000\000\151 (0x00006900) decimal 105
//
// GZIP \037\213\010\010... http://www.ietf.org/rfc/rfc1952.txt
break;
}
- ifs >> str;
- lyxerr[Debug::GRAPHICS]
- << "Scanstring: " << str << endl;
+ getline(ifs, str);
+ lyxerr[Debug::GRAPHICS] << "Scanstring: " << str << endl;
+
string const stamp = str.substr(0,2);
if (firstLine && str.size() >= 2) {
// at first we check for a zipped file, because this
else if (contains(str,"_bits[]"))
format = "xbm";
- else if (contains(str,"XPM"))
+ else if (contains(str,"XPM") || contains(str, "static char *"))
format = "xpm";
else if (contains(str,"BITPIX"))