Return None when asked to text_to_dom None.

This should desambiguate the base data semantics.
This commit is contained in:
Sergio Martínez Portela 2022-08-27 13:06:08 +02:00
parent f3ca823b0c
commit baaa7cbb86

View File

@ -186,7 +186,7 @@ def get_links_from_content(content):
def text_to_dom(tokens, item): def text_to_dom(tokens, item):
if tokens is None: if tokens is None:
return [] return None
in_link = False in_link = False
in_description = False in_description = False