From 05b8f93a197f4be40b84103399fb8c97dfe8a58f Mon Sep 17 00:00:00 2001 From: Paul Craig Date: Tue, 17 Dec 2024 10:05:44 -0500 Subject: [PATCH] Preserve HTML elements that are in the table cell as well Previous to this, we were just keeping the text, but we would lose HTML elements (eg, lists and bold). Now it works as you would expect. --- bloom_nofos/nofos/nofo.py | 15 ++++++++------- bloom_nofos/nofos/test_nofo.py | 9 +++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/bloom_nofos/nofos/nofo.py b/bloom_nofos/nofos/nofo.py index cf5f6aa1..ed094d87 100644 --- a/bloom_nofos/nofos/nofo.py +++ b/bloom_nofos/nofos/nofo.py @@ -1265,7 +1265,7 @@ def _convert_single_item_lists_to_paragraphs(soup, cell): This function checks if a given table cell (`` or ``) contains exactly one child, which must be a list (`