I'm using python-docx to parse some tables to dictionaries. However, some of those tables contain strikethrough text. This text needs to be excluded.
I have already found how to detect strike-through through text in paragraphs or how to apply strike-through text myself, but nowhere can I find how to check for strikethrough text in tables. As far as I can tell from the documentation, neither the Table object nor the cells have a "Run" object, which is something that Paragraphs have that contain style data.
Without the Run object, there's no style data.
source https://stackoverflow.com/questions/77128728/how-to-detect-strikethrough-text-from-docx-tables
Comments
Post a Comment