From f337f5067bb4a99f18810ec175975d4953824bc3 Mon Sep 17 00:00:00 2001 From: Nicolas Steinmetz Date: Tue, 30 Aug 2011 16:37:59 +0300 Subject: [PATCH] Fix as in dotclear, format is not "markdown" but "wiki". So add an "or" statement. --- tools/pelican-import | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pelican-import b/tools/pelican-import index 44f02fbd..a85e55f3 100755 --- a/tools/pelican-import +++ b/tools/pelican-import @@ -113,7 +113,7 @@ def dc2fields(file): if cat_id: categories = [category_list[id].strip() for id in cat_id.split(',')] - if post_format == "markdown": + if (post_format == "markdown") or (post_format == "wiki"): content = post_excerpt + post_content else: content = post_excerpt_xhtml + post_content_xhtml @@ -163,7 +163,7 @@ def build_markdown_header(title, date, author, categories, tags): def fields2pelican(fields, output_path, dircat=False): for title, content, filename, date, author, categories, tags, markup in fields: - if markup == "markdown": + if (markup == "markdown") or (markup == "wiki"): ext = '.md' header = build_markdown_header(title, date, author, categories, tags) else: