You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by wa...@apache.org on 2021/06/07 18:34:02 UTC

[openwebbeans-site] 06/16: refactor - prettify

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 <da...@davefisher.tech>
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