jaytaylor / html2text

Golang HTML to plaintext conversion library

Home Page:https://jaytaylor.com/html2text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Signal killed when parsing eppi.ioe.ac.uk url

computerphysicslab opened this issue · comments

Bug downloading url: http://eppi.ioe.ac.uk/cms/Projects/DepartmentofHealthandSocialCare/Publishedreviews/COVID-19Livingsystematicmapoftheevidence/tabid/3765/Default.aspx

This is my code for parsing url:
// Get plain text content
plain, err := html2text.FromString(string(bodyBytes), html2text.Options{PrettyTables: true})

I got error:
signal: killed

It works pretty well on many other links. Thanks a lot, great job!!!

The problem is in the tablewriter library.
Try setting PrettyTablesOptions.AutoWrapText = false.
A similar problem in #48