diff -u -r -N -x CVS -x WIN32_20.1_i386_DBG -x WIN32_20.1_i386_OBJ --minimal abi.org/src/wp/impexp/xp/ie_imp_AbiWord_1.cpp abi/src/wp/impexp/xp/ie_imp_AbiWord_1.cpp --- abi.org/src/wp/impexp/xp/ie_imp_AbiWord_1.cpp Thu Jan 27 01:22:46 2000 +++ abi/src/wp/impexp/xp/ie_imp_AbiWord_1.cpp Mon Feb 14 16:06:18 2000 @@ -97,6 +97,15 @@ size_t len = _readBytes(buf, sizeof(buf)); done = (len < sizeof(buf)); +#if 1 + // TODO - remove this then not needed anymore. In ver 0.7.7 and erlier, AbiWord export inserted + // chars below 0x20. Most of these are invalid XML and can't be imported. + // See bug #762. + for( int n1 = 0; n1 < len; n1++ ) + if( buf[n1] >= 0x00 && buf[n1] < 0x20 && buf[n1] != 0x09 && buf[n1] != 0x0a && buf[n1] != 0x0d ) + buf[n1] = 0x0d; +#endif + if (!XML_Parse(parser, buf, len, done)) { UT_DEBUGMSG(("%s at line %d\n",