Avoid duplicate separators

main
bashrc 2026-05-13 13:08:41 +01:00
parent 49657dca8e
commit 66b5cbaae7
1 changed files with 2 additions and 1 deletions

View File

@ -1129,6 +1129,7 @@ def html_timeline(default_timeline: str,
if not reverse_sequence:
tl_items_str += last_item_str
if separator_str:
if not tl_items_str.endswith(separator_str):
tl_items_str += separator_str
else:
tl_items_str = last_item_str + tl_items_str