From 486c88c583abc4f5822abcdf857d8a73b7c20bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 30 Oct 2022 23:27:47 +0100 Subject: [PATCH] Take full headline body for search function. Using just `get_contents` doesn't get list items or tables. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index e80be56..6c990c0 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -226,7 +226,7 @@ def regen_all(src_top, dest_top, *, docs=None, db=None): ( headline.id, headline.title.get_text(), - ''.join(headline.get_contents('raw')), + '\n'.join(headline.doc.dump_headline(headline, recursive=False)), topLevelHeadline.title.get_text(), headline.is_done, headline.is_todo,