markdown: Use unicode ellipses for collapsing spoilers.

We had initially implemented this feature using `(...)` but `(…)` is the
better variation.
This commit is contained in:
Rohitt Vashishtha
2020-07-16 10:03:11 +05:30
committed by Tim Abbott
parent 7d5d90b484
commit b64ba98e90
2 changed files with 8 additions and 8 deletions

View File

@@ -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 = ''