From 358e92cf0444e842cd7f5048b83b4835949cef6e Mon Sep 17 00:00:00 2001 From: Nicolas Steinmetz Date: Fri, 30 Sep 2011 22:48:16 +0200 Subject: [PATCH] Clean dot clear import --- tools/pelican-import | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/pelican-import b/tools/pelican-import index a57ce25d..4392d9ff 100755 --- a/tools/pelican-import +++ b/tools/pelican-import @@ -115,8 +115,8 @@ def dc2fields(file): if cat_id: categories = [category_list[id].strip() for id in cat_id.split(',')] + # Get tags related to a post tag = post_meta.replace('{', '').replace('}', '').replace('a:1:s:3:\\"tag\\";a:', '').replace('a:0:', '') - # We handle only line that have tags syntax if len(tag) > 1: if int(tag[:1]) == 1: newtag = tag.split('"')[1] @@ -132,7 +132,8 @@ def dc2fields(file): j=j+2 """ - Weird - dotclear2 at least does not use markdown ; so wonder about the use case on "markdown" + dotclear2 does not use markdown by default unless you use the markdown plugin + Ref: http://plugins.dotaddict.org/dc2/details/formatting-markdown """ if post_format == "markdown": content = post_excerpt + post_content