Subject: [matti@picus.org: RTF importer fails if { } inside \fldrslt]
From: Sam TH (sam@uchicago.edu)
Date: Wed Jul 11 2001 - 09:25:44 CDT
Can someone who knows the RTF importer (that would be you, Hub :) check
this out?
sam th --- sam@uchicago.edu --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dynds.org/decss
attached mail follows:
The following patch enables the RTF importer to handle a field with a { }
inside the field result, i.e.
{\field
{\*\fldinst
{\rtlch \af2 \ltrch keywords }
}
{\fldrslt
{\rtlch \af2 \ltrch 42047S1}
}
}
This is a BIDI document.
Thanks for a great product -
Matti Picus
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_imp_RTF.cpp,v
retrieving revision 1.45
diff -r1.45 ie_imp_RTF.cpp
534a535
> bool err;
540c541,542
< m_stateStack.push(pState);
--- > err = m_stateStack.push(pState); > UT_ASSERT(true == err); 622a625 > { 623a627 > } 931a936 > int depth = 1; 958c963,965 < if (ch == '\\') --- > if (ch == '{') > depth ++; > else if (ch == '\\') 981c988,990 < } while (ch != '}'); --- > else if (ch == '}') > depth --; > } while (! (ch == '}' && depth ==0));
This archive was generated by hypermail 2b25 : Wed Jul 11 2001 - 09:25:46 CDT