-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlSymbol entity code #37
Comments
Hi, @osession . Thank for the issue. I am sorry, but I don't understand it myself. 😔 The code is terrible. I wish I knew the Clean Code principles when I was writing this. I have issue #32 open for an API rewrite in clean code, but don't really have much urge to do it. It's been a while since I had to work with RTF files. The code lines in question should have some something to do with how the characters So, when the Symbol is In case a literal If you find out why, please let me know. |
@osession in your case, it looks to me like your RTF contains the bytes sequence I am not sure if |
I'm trying to use this package for one of my projects and ran into an issue where the parser tries to decode a character and gets a value error in the Control_Symbol initilization. The character it's finding is "\'", so I'm getting a ValueError: invalid literal for int() with base 16: "\'"
so I'm trying to understand more what this Control_Symbol init function is doing. I couldn't understand what the purpose of these two lines of code are:
if self.text in "\\{}": file.seek(file.tell() - SYMBOL)
Could you please provide an explanation for this part of the code?
The text was updated successfully, but these errors were encountered: