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 7f6f59a8aacc8e6de20e2dcbf1d4f752f9e1fa0a Author: Dave Fisher <[email protected]> AuthorDate: Mon Jun 7 09:59:58 2021 -0700 use ezt raw format --- content/index.ezmd | 2 +- theme/plugins/asfdata.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/content/index.ezmd b/content/index.ezmd index 4eb9e2d..9eb73fe 100644 --- a/content/index.ezmd +++ b/content/index.ezmd @@ -48,6 +48,6 @@ Title: OpenWebBeans Home Page <div class="row"> [for owb]<div class="col-md-4"> <h4><a href="[owb.href]">[owb.title]</a></h4> - [owb.content] + [format "raw"][owb.content][end] </div>[end] </div> diff --git a/theme/plugins/asfdata.py b/theme/plugins/asfdata.py index 29e2c26..0214abb 100644 --- a/theme/plugins/asfdata.py +++ b/theme/plugins/asfdata.py @@ -355,14 +355,12 @@ def get_element_text(entry, child): # retrieve truncate words in html. def truncate_words(text, words): content_text = ' '.join(text.split(' ')[:words]) + "..." - print(content_text) for regex, replace in FIXUP_HTML: m = regex.search(content_text) if m: content_text = re.sub(regex, replace, content_text) tree_soup = BeautifulSoup(content_text, 'html.parser') content_text = tree_soup.prettify() - print(content_text) return content_text
