I generate HTML file programmatically. As imagined its quite ugly but works perfectly. I was wondering if there is a github action or a workflow that I can write that will convert the file into a pretty looking html file.
Writing a workflow that uses Python is fine too. However I must point out that BeautifulSoup fails to correctly indent my file(output misses some tags - perhaps because the generated html is untidy due to line breaks etc) - moreover it uses a single space indenting system, I need 4 spaces.
Some other tools I looked into -
- html5print - Isn't maintained it seems - idle since 5 years
- HTML Tidy - Doesn't seem to work with Python 3.X
Don't know if I will be able to run the following in a workflow file via actions -
I haven't explored other languages, but I am open to them, especially Go
and Ruby
.