gnunet-svn
[Top][All Lists]
Advanced

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

[www_shared] branch master updated: fix processor


From: gnunet
Subject: [www_shared] branch master updated: fix processor
Date: Wed, 01 Apr 2020 13:33:42 +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 83a52b0  fix processor
83a52b0 is described below

commit 83a52b012bfa838e805d7c600facf8d4c09cf011
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 1 13:29:08 2020 +0200

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

diff --git a/textproc.py b/textproc.py
index 7f40235..0c68d08 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('<html><body><p>{% extends "common/news.j2" 
%}\n{% block body_content %}\n  </p>', "").replace('\n{% endblock body_content 
%}\n</body></html>', "")
+        i = repr(soup).replace('{% extends "common/news.j2" %}\n{% block 
body_content %}\n', "").replace('\n{% endblock body_content %}', "")
         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]