From baaa7cbb86bc336e3042c15ebe157f9eb0e47f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sat, 27 Aug 2022 13:06:08 +0200 Subject: [PATCH] Return None when asked to `text_to_dom` None. This should desambiguate the base data semantics. --- org_rw/org_rw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index 012eed6..81c638c 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -186,7 +186,7 @@ def get_links_from_content(content): def text_to_dom(tokens, item): if tokens is None: - return [] + return None in_link = False in_description = False