Fix typos caught by typos.

https://github.com/crate-ci/typos

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-02 11:50:23 -08:00
committed by Tim Abbott
parent 730b93c338
commit bd884c88ed
125 changed files with 109 additions and 109 deletions

View File

@@ -59,7 +59,7 @@ def inline_template(template_source_name: str) -> None:
# Thus, we strip this stuff out if the template extends
# another template.
if template_name not in ["email_base_default", "email_base_marketing", "macros"]:
output = strip_unnecesary_tags(output)
output = strip_unnecessary_tags(output)
if (
"zerver/emails/compiled/email_base_default.html" in output
@@ -82,7 +82,7 @@ def escape_jinja2_characters(text: str) -> str:
return text
def strip_unnecesary_tags(text: str) -> str:
def strip_unnecessary_tags(text: str) -> str:
end_block = "</body>\n</html>"
start_block = "{% extends"
start = text.find(start_block)