David %!s(int64=10) %!d(string=hai) anos
pai
achega
447ebd3655
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      news.py

+ 4 - 1
news.py

@@ -59,7 +59,10 @@ class News():
         self.SUMMARY=a.summary
         self.TEXT=a.text
         self.TITLE=a.title
-        self.HTML=htmlmin.minify(a.article_html,remove_empty_space=True)
+        if html is None:
+            self.HTML=htmlmin.minify(a.article_html,remove_empty_space=True)
+        else:
+            self.HTML=htmlmin.minify(html,remove_empty_space=True)
         self.ERROR=False
         lowertext=self.TEXT.lower()
         for k in kw: