]> xn--ix-yja.es Git - alex.git/commitdiff
Fix odd newlines
authoralex <alex@pdp7.net>
Sat, 12 Mar 2022 13:25:58 +0000 (14:25 +0100)
committeralex <alex@pdp7.net>
Sat, 12 Mar 2022 13:25:58 +0000 (14:25 +0100)
from_old_blog.py

index 096eb378ec688170730b4138b5761bf475c0692b..fc3d698f95510a7ffc711294c986c855777d7919 100644 (file)
@@ -35,6 +35,8 @@ for post in posts:
     post["post"] = post["post"].encode("iso-8859-1").decode("utf8")
     post["title"] = post["title"].encode("iso-8859-1").decode("utf8")
 
+    post["post"] = post["post"].replace("\\r\\n", "")
+
     t = post["title"]
 
     y,m,d = post["posted"].split(" ")[0].split("-")