html5print | HTML5 , CSS , Javascript Pretty Print
kandi X-RAY | html5print Summary
kandi X-RAY | html5print Summary
HTML5, CSS, Javascript Pretty Print
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of html5print
html5print Key Features
html5print Examples and Code Snippets
Community Discussions
Trending Discussions on html5print
QUESTION
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
.
ANSWER
Answered 2020-May-07 at 23:44You can install tidy
via apt
and just run it directly in CI pipeline. So, assuming that you have some python script that generates page.html
for you. Here is the configuration that runs tidy
with generated file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install html5print
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page