From 5cd341e11e9e04d3813e56b319b7b9afa4b40ae4 Mon Sep 17 00:00:00 2001 From: cmdln Date: Fri, 16 Dec 2011 08:56:59 -0500 Subject: [PATCH] Handle WP cute quoting. --- append.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/append.py b/append.py index f00bf9f..f7c7e03 100755 --- a/append.py +++ b/append.py @@ -180,6 +180,8 @@ def __permalink(title): def __title(title): fixed = title fixed = re.sub(u'\u2013', '-', fixed) + fixed = re.sub(u'\u201c', '"', fixed) + fixed = re.sub(u'\u201d', '"', fixed) fixed = re.sub(u'\u2019', '\'', fixed) fixed = re.sub(u'\xd7', 'x', fixed) return fixed