rtfparserkit icon indicating copy to clipboard operation
rtfparserkit copied to clipboard

parsing non-RTF content should throw exception

Open stippi opened this issue 10 years ago • 0 comments

When parsing content that is not RTF, and when the content by chance contains no '{' characters, the low level parser will keep adding all chars to its character sequence cache. In the end, no hook function of the listener will be called and it looks the same to the upper layers as if an empty but otherwise valid RTF document was parsed. Any suggestions on how to best fix this? I can see multiple ways to approach this.

stippi avatar Nov 25 '15 16:11 stippi