Skip to content
Snippets Groups Projects
Commit 7a001788 authored by Matthew Hodgson's avatar Matthew Hodgson Committed by GitHub
Browse files

Merge pull request #1664 from kyrias/preview-url-resource-encoding

preview_url_resource: Ellipsis must be in unicode string
parents 47120007 32c8b550
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