diff --git a/Source/RtfDomParser/Parser.cs b/Source/RtfDomParser/Parser.cs index c8a3c1c..24f29a8 100644 --- a/Source/RtfDomParser/Parser.cs +++ b/Source/RtfDomParser/Parser.cs @@ -650,6 +650,13 @@ public RTFToken NextToken( ) //myReader.Read(); c = myReader.Read(); + + /* + // Unknown what this particular code is for. It appears that if a block starts with a quote + // then we read until and end quote is found and add that as a text block. However, if no + // end quote is found and we hit and open or close token, then any text is thrown away. + // What is this code for? + if (c == '\"') { // 以双引号开头,读取连续的字符 @@ -676,6 +683,7 @@ public RTFToken NextToken( ) token.Key = str.ToString(); return token; } + */ while( c == '\r' || c == '\n'