David hace 10 años
padre
commit
447ebd3655
Se han modificado 1 ficheros con 4 adiciones y 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: