1
0
Fork 0
forked from github/pelican

ruff UP031 in files: use format specifiers instead of percent format

This commit is contained in:
boxydog 2024-06-01 16:00:17 -05:00
commit 30bde3823f
12 changed files with 47 additions and 50 deletions

View file

@ -626,7 +626,7 @@ def truncate_html_words(s: str, num: int, end_text: str = "…") -> str:
out += " " + end_text
# Close any tags still open
for tag in truncator.open_tags:
out += "</%s>" % tag
out += f"</{tag}>"
# Return string
return out