gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: -skip li


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: -skip li
Date: Thu, 20 Oct 2022 14:18:08 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new 28b2774  -skip li
28b2774 is described below

commit 28b2774ce889dcef87bce32162f5326ee6e7b263
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Oct 20 14:18:06 2022 +0200

    -skip li
---
 talermerchantdemos/blog/content.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/talermerchantdemos/blog/content.py 
b/talermerchantdemos/blog/content.py
index ed8243c..2c31199 100644
--- a/talermerchantdemos/blog/content.py
+++ b/talermerchantdemos/blog/content.py
@@ -116,9 +116,15 @@ def add_from_html(resource_name, lang):
             else:
                 titleat = lists
         if len(titleat) > 0:
-            teaser = titleat[0].prettify()
+            if (titelat[0].tag == 'li'):
+                teaser = titleat[0].contents[0].prettify()
+            else:
+                teaser = titleat[0].prettify()
             if (len(titleat) > 1) and (len(teaser) < 100):
-                teaser2 = titleat[1].prettify()
+                if (titelat[1].tag == 'li'):
+                    teaser2 = titleat[1].contents[0].prettify()
+                else:
+                    teaser2 = titleat[1].prettify()
                 if len(teaser2) > len(teaser):
                     teaser = teaser2
         else:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]