mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-11 23:07:47 +00:00
Make it actually compile
This commit is contained in:
1 parent
aecaec3e10
commit
f83f5fbce8
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user