edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

tables in 10k text partially truncated to ... when saving to .txt file

Open xiaoxu-zhao opened this issue 1 year ago • 3 comments

Hi Dwight,

I tried to download the full text of a 10k file but found that the inline tables are missing for a filing , [https://www.sec.gov/Archives/edgar/data/783412/000143774924038552/djco20240930d_10k.htm](url) but I could actually access to those tables in text format by calling individual items (e.g. filling.obj()["Item 7"], would it possible to keep all the tables in the text by any chance?

Image I suspect changing the width in the richText may solve the issue? Thank you very much in advance! Best regards, Xiaoxu

xiaoxu-zhao avatar Mar 13 '25 11:03 xiaoxu-zhao

Hi Dwight, I come with some updates, I change this to width=500 get following output:

Image

Image but still the table is not the same as in the HTML report

Image maybe due to the stacked headers? This is example from cik 63908 2024 10-K Thanks! Best regards, Xiaoxu

xiaoxu-zhao avatar Mar 13 '25 12:03 xiaoxu-zhao

I will take a look. On really complex tables the rendering which is based on Rich tables struggles. I will see if we can do some more optimizations to make the tables look better

dgunning avatar Mar 13 '25 17:03 dgunning

Hi again Dwight, Thanks foe the quick reply! I want to update with you that actually when I try to print the text content in jupyter notebook, the format is well preserved

Image is there any possible reason why the saved txt file having messed up format table? is it because jupyter notebook has some settings in rendering the text ? because output actually is str type from filing.text()... a little bit wired to me. I really appreciate your help in advance!!!

Best, Xiaoxu

xiaoxu-zhao avatar Mar 14 '25 13:03 xiaoxu-zhao