diff options
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index ea46b8aa1b..4624b89014 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -344,8 +344,8 @@ class PreviewUrlResource(Resource): # lines) text_nodes = ( line.strip() + for el in cloned_tree.iter() if el.text for line in el.text.splitlines() - for el in el.iter() if el.text ) # Try to get a summary of between 200 and 500 words, respecting |