|
diff --git a/nikola/plugins/command/import_wordpress.py b/nikola/plugins/command/import_wordpress.py
index 1aded89..6468104 100644
--- a/nikola/plugins/command/import_wordpress.py
+++ b/nikola/plugins/command/import_wordpress.py
@@ -332,7 +332,7 @@ class CommandImportWordpress(Command, ImportMixin):
def transform_multiple_newlines(self, content):
"""Replaces multiple newlines with only two."""
if self.squash_newlines:
- return re.sub(r'\n{3,}', r'\n\n', content)
+ return re.sub(r'\n{3,}', r'</p>\n\n<p>', content)
else:
return content
@@ -359,6 +359,10 @@ class CommandImportWordpress(Command, ImportMixin):
if isinstance(path, utils.bytes_str):
path = path.decode('utf8')
slug = utils.slugify(path)
+
+ # Remove date form the slug
+ slug = utils.slugify(path)[8:]
+
if not slug: # it happens if the post has no "nice" URL
slug = get_text_tag(
item, '{{{0}}}post_name'.format(wordpress_namespace), None)
|