mirror of
https://mau.dev/maunium/synapse.git
synced 2025-01-21 00:51:58 +01:00
Merge pull request #1664 from kyrias/preview-url-resource-encoding
preview_url_resource: Ellipsis must be in unicode string
This commit is contained in:
commit
7a00178832
1 changed files with 1 additions and 1 deletions
|
@ -543,5 +543,5 @@ def summarize_paragraphs(text_nodes, min_size=200, max_size=500):
|
||||||
|
|
||||||
# We always add an ellipsis because at the very least
|
# We always add an ellipsis because at the very least
|
||||||
# we chopped mid paragraph.
|
# we chopped mid paragraph.
|
||||||
description = new_desc.strip() + "…"
|
description = new_desc.strip() + u"…"
|
||||||
return description if description else None
|
return description if description else None
|
||||||
|
|
Loading…
Add table
Reference in a new issue