Skip to content
Snippets Groups Projects
Commit 32c8b550 authored by Johannes Löthberg's avatar Johannes Löthberg
Browse files

preview_url_resource: Ellipsis must be in unicode string

parent 47120007
No related branches found
No related tags found
No related merge requests found
...@@ -543,5 +543,5 @@ def summarize_paragraphs(text_nodes, min_size=200, max_size=500): ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment