mirror of https://github.com/zulip/zulip.git
check-templates: Tweak message for fixes.
This commit is contained in:
parent
d565387657
commit
733cad1f5c
|
@ -203,7 +203,7 @@ def validate_indent_html(fn: str, fix: bool) -> bool:
|
||||||
phtml = pretty_print_html(html)
|
phtml = pretty_print_html(html)
|
||||||
if not html.split("\n") == phtml.split("\n"):
|
if not html.split("\n") == phtml.split("\n"):
|
||||||
if fix:
|
if fix:
|
||||||
print(GREEN + "Automatically fixing problems..." + ENDC)
|
print(GREEN + f"Automatically fixing indentation for {fn}" + ENDC)
|
||||||
with open(fn, "w") as f:
|
with open(fn, "w") as f:
|
||||||
f.write(phtml)
|
f.write(phtml)
|
||||||
# Since we successfully fixed the issues, we return True.
|
# Since we successfully fixed the issues, we return True.
|
||||||
|
|
Loading…
Reference in New Issue