This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans-site.git

commit 763424b162628cb99be22442b063e50c197eb696
Author: Dave Fisher <[email protected]>
AuthorDate: Mon Jun 7 09:48:29 2021 -0700

    refactor - prettify
---
 theme/plugins/asfdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/theme/plugins/asfdata.py b/theme/plugins/asfdata.py
index ae98d23..29e2c26 100644
--- a/theme/plugins/asfdata.py
+++ b/theme/plugins/asfdata.py
@@ -361,7 +361,7 @@ def truncate_words(text, words):
         if m:
             content_text = re.sub(regex, replace, content_text)
     tree_soup = BeautifulSoup(content_text, 'html.parser')
-    content_text = tree_soup.decode(formatter='html')
+    content_text = tree_soup.prettify()
     print(content_text)
     return content_text
 

Reply via email to