group, this happens when there is an alternate font name. TODO:
We should probably handle alternate font names somehow.
svn path=/trunk/mcs/; revision=66962
+2006-10-25 Jackson Harper <jackson@ximian.com>
+
+ * RTF.cs: Kick out of the text swallowing loop if we begin a new
+ group, this happens when there is an alternate font name. TODO:
+ We should probably handle alternate font names somehow.
+
2006-10-20 Jackson Harper <jackson@ximian.com>
* RTF.cs: Need to cast this to a char now.
sb = new StringBuilder();
- while ((rtf.rtf_class != TokenClass.EOF) && (!rtf.CheckCM(TokenClass.Text, (Major)';')) && (!rtf.CheckCM(TokenClass.Group, Major.EndGroup))) {
+ while ((rtf.rtf_class != TokenClass.EOF) && (!rtf.CheckCM(TokenClass.Text, (Major)';')) && (!rtf.CheckCM(TokenClass.Group, Major.EndGroup)) && (!rtf.CheckCM(TokenClass.Group, Major.BeginGroup))) {
sb.Append((char)rtf.major);
rtf.GetToken();
}