gnunet-svn
[Top][All Lists]
Advanced

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

[www_shared] branch master updated: fix rss generation


From: gnunet
Subject: [www_shared] branch master updated: fix rss generation
Date: Wed, 01 Apr 2020 13:38:11 +0200

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

grothoff pushed a commit to branch master
in repository www_shared.

The following commit(s) were added to refs/heads/master by this push:
     new 339ecc4  fix rss generation
339ecc4 is described below

commit 339ecc4c7b56f9532a0fe30741962b62538d9a2e
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 1 13:33:38 2020 +0200

    fix rss generation
---
 textproc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/textproc.py b/textproc.py
index 0c68d08..5cf9877 100644
--- a/textproc.py
+++ b/textproc.py
@@ -69,7 +69,7 @@ def cut_article(filename, conf, lang):
 def cut_all(filename, conf, lang):
     with open(filename) as html:
         soup = BeautifulSoup(html, features="lxml")
-        i = repr(soup).replace('{% extends "common/news.j2" %}\n{% block 
body_content %}\n', "").replace('\n{% endblock body_content %}', "")
+        i = repr(soup).replace('{% extends "common/news.j2" %}\n{% block 
body_content %}\n', "").replace('\n{% endblock body_content %}', 
"").replace('<html><body><p></p>',"").replace('</body></html>', "")
         urlstr = "https://"; + conf["siteconf"][0]["baseurl"] + "/" + lang + "/"
         text = i.replace("\n", "").replace("{{ url_localized('", 
urlstr).replace("') }}", "")
         # .replace('<', '&lt;').replace('>', '&gt;').replace('"', '&quot;')

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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