update @ Sun 25 Dec 04:12:35 EET 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-12-25 04:12:35 +02:00
parent bba0da5bee
commit 680f0adad9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
2 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -248,10 +248,7 @@ def sanitise_title(title: str, titleset: Iterable[str], _nosep: bool = False) ->
def truncate_str(string: str, length: int) -> str: def truncate_str(string: str, length: int) -> str:
if len(string) <= length: return string if len(string) <= length else (string[:length] + "...")
return string
return string[:length] + "..."
class BetterHeaders(Treeprocessor): class BetterHeaders(Treeprocessor):