Pull request #28: feature: pretty html output
Merge in FRAG/50ohm.de from feature/pretty_html to main * commit '1da60327dcc52f03436d6fb75037a3c85e3f953c': feature: pretty html output
This commit is contained in:
+3
-1
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
from mistletoe import Document
|
||||
|
||||
@@ -78,4 +79,5 @@ def test_html(capsys):
|
||||
with FiftyOhmHtmlRenderer(question_stub) as renderer:
|
||||
output = renderer.render(Document(content))
|
||||
with open("test/acceptanceTest.html", "w") as output_file:
|
||||
output_file.write(output)
|
||||
pretty = BeautifulSoup(output, 'html.parser').prettify()
|
||||
output_file.write(pretty)
|
||||
|
||||
Reference in New Issue
Block a user