microsoft / Simplify-Docx

Simplify DOCX files to JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when setting flatten-hyperlink False

tom-clarke-dluhc opened this issue · comments

Error: 'CT_Hyperlink' object has no attribute 'docLocatoin' when setting simplify(doc, {"flatten-hyperlink":False}). Is it due to this typo?

__props__ = ["anchor", "docLocatoin", "history", "id", "tgtFrame", "tooltip"]

Almost certainly due to the typo you mentioned. I'll fix that when I get a chance (probably next day or so). (Incidentally, I've never been part of the MS Office group at Microsoft. Just needed a parser a few years ago and none of the available ones worked for me -- so I built this one and shared it out and maintain in what little free time I have...)

Thanks Jason. Definitely no rush to fix and I appreciate you creating it and maintaining it!