You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple documents (which, unfortunately, I'm not able to share directly) that I can open just fine in word, but when I try to access a run.font.size on a certain cursed run, I get an error like this: ValueError: invalid literal for int() with base 10: '36.56250317891439'
I'm guessing this is something similar to an earlier issue, #1335, where the XML schema says this is invalid but there must be some way it ends up happening, but it doesn't break Microsoft Word. Given that this int is being instantly converted to a float, it seems likely that it will be completely harmless to just change int to float on docx/oxml/simpletypes.py:265
The text was updated successfully, but these errors were encountered:
version: 1.1.2
I have multiple documents (which, unfortunately, I'm not able to share directly) that I can open just fine in word, but when I try to access a
run.font.size
on a certain cursed run, I get an error like this:ValueError: invalid literal for int() with base 10: '36.56250317891439'
Here's a full traceback:
I'm guessing this is something similar to an earlier issue, #1335, where the XML schema says this is invalid but there must be some way it ends up happening, but it doesn't break Microsoft Word. Given that this int is being instantly converted to a float, it seems likely that it will be completely harmless to just change
int
tofloat
ondocx/oxml/simpletypes.py:265
The text was updated successfully, but these errors were encountered: