Separate words on different line chunks.

This commit is contained in:
Sergio Martínez Portela 2022-11-15 21:12:13 +01:00
parent 058f0caf73
commit fe052d3468

View File

@ -512,7 +512,7 @@ def render_text_tokens(tokens, acc, headline, graph):
description=html.escape(word))) description=html.escape(word)))
else: else:
line_chunks.append(html.escape(word)) line_chunks.append(html.escape(word))
contents.append(''.join(line_chunks)) contents.append(' '.join(line_chunks))
acc.append('<span class="line">{}</span>'.format('</p><p>'.join(contents))) acc.append('<span class="line">{}</span>'.format('</p><p>'.join(contents)))