浏览代码

Fixed bug in artical page styling

Stan Janssen 3 年之前
父节点
当前提交
3efd168c0d
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      kindlerss.py

+ 6 - 6
kindlerss.py

@@ -45,11 +45,11 @@ for item in channel.iterfind("item"):
         print("<head>", file=file)
         print("<meta charset=\"UTF-8\">", file=file)
         print("<title>RSS Feed</title>", file=file)
-        print("<style>", file=FILE)
-        print("* { font-family: sans-serif; line-height: 1.6em;}", file=FILE)
-        print("a:link { color: black }", file=FILE)
-        print("a:visited { color: #888 }", file=FILE)
-        print("</style>", file=FILE)
+        print("<style>", file=file)
+        print("* { font-family: sans-serif; line-height: 1.6em;}", file=file)
+        print("a:link { color: black }", file=file)
+        print("a:visited { color: #888 }", file=file)
+        print("</style>", file=file)
         print("</head>", file=file)
         print("<bady>", file=file)
         print(contents, file=file)
@@ -59,4 +59,4 @@ for item in channel.iterfind("item"):
 print("</ul>", file=FILE)
 print("</body>", file=FILE)
 print("</html>", file=FILE)
-FILE.close()
+FILE.close()