Use dots to indicate truncation

main
bashrc 2026-04-14 13:45:05 +01:00
parent 329c23eaba
commit 2e61b935e5
1 changed files with 2 additions and 1 deletions

View File

@ -3243,7 +3243,8 @@ def individual_post_as_html(signing_priv_key_pem: str,
# truncate content warning if it is too long
if len(cw_content_str) > max_content_warning_length:
cw_content_str = \
remove_html(cw_content_str[:max_content_warning_length])
remove_html(cw_content_str[:max_content_warning_length]) + \
'...'
if not is_blog_post(post_json_object):
# get the content warning button
content_str += \