aboutsummaryrefslogtreecommitdiff
path: root/from_old_blog.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2022-03-12 14:25:58 +0100
committeralex <alex@pdp7.net>2022-03-12 14:25:58 +0100
commit497fc52a7dc5941994d8d332a0f18c89c336ab27 (patch)
treee66d421962dad118ad4f9916296385653ac83eed /from_old_blog.py
parenta467deb7c389f2b6cdafd1c333b7689933d796db (diff)
Fix odd newlines
Diffstat (limited to 'from_old_blog.py')
-rw-r--r--from_old_blog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/from_old_blog.py b/from_old_blog.py
index 096eb378..fc3d698f 100644
--- a/from_old_blog.py
+++ b/from_old_blog.py
@@ -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("-")