Skip to content

Commit

Permalink
added preview generation message
Browse files Browse the repository at this point in the history
  • Loading branch information
piterson05 committed Sep 13, 2023
1 parent 701204f commit 75021c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ def check_entries(entry: xml.dom.minidom.Element, path: list[str]):
if Validator.preview_formatting and DOMINATE_INSTALLED:
with open("preview.html", "w", encoding="utf-8") as file:
file.write(Validator.main_doc.render(pretty=False))
print("Formatting preview has been generated in preview.html\n")
if Validator.errors > 0:
print(f"Errors: {Validator.errors}")
sys.exit(1)
Expand Down

0 comments on commit 75021c3

Please sign in to comment.