Can someone who knows the RTF importer (that would be you, Hub :) check
this out?
           
sam th --- [EMAIL PROTECTED] --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dynds.org/decss



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));



PGP signature

Reply via email to