mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
markdown: Use unicode ellipses for collapsing spoilers.
We had initially implemented this feature using `(...)` but `(…)` is the better variation.
This commit is contained in:
committed by
Tim Abbott
parent
7d5d90b484
commit
b64ba98e90
@@ -534,8 +534,8 @@ def get_mobile_push_content(rendered_content: str) -> str:
|
||||
header = elem.find_class('spoiler-header')[0]
|
||||
text = process(header).strip()
|
||||
if len(text) == 0:
|
||||
return "(...)\n"
|
||||
return f"{text} (...)\n"
|
||||
return "(…)\n"
|
||||
return f"{text} (…)\n"
|
||||
|
||||
def process(elem: lxml.html.HtmlElement) -> str:
|
||||
plain_text = ''
|
||||
|
||||
Reference in New Issue
Block a user