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:33:59 UTC

[openwebbeans-site] 03/16: join properly

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 e4a9cd888478b51afe936e6c4261113930d00e9d
Author: Dave Fisher <da...@davefisher.tech>
AuthorDate: Mon Jun 7 09:14:14 2021 -0700

    join properly
---
 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 54dffab..6095537 100644
--- a/theme/plugins/asfdata.py
+++ b/theme/plugins/asfdata.py
@@ -361,7 +361,7 @@ def process_blog(feed, count, words, debug):
         # we may want content
         content_text = ''
         if words:
-            content_text = get_element_text(entry, 'content').split(' ')[:words].join(' ') + "..."
+            content_text = ' '.join(get_element_text(entry, 'content').split(' ')[:words]) + "..."
         # we want the title and href
         v.append(
             {