From 7498fb8eff890896006a9faab9c9d839eaaecc4d Mon Sep 17 00:00:00 2001 From: Dominique Plante Date: Tue, 28 May 2013 15:51:52 -0700 Subject: [PATCH] update description used on the command line to include Posterous as recognized input fromat --- pelican/tools/pelican_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 5d0937fd..8dfbbee5 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -117,7 +117,7 @@ def wp2fields(xml): if item.find('status').string == "publish": try: - # Use HTMLParser due to issues with BeautifulSoup 3 + # Use HTMLParxser due to issues with BeautifulSoup 3 title = HTMLParser().unescape(item.title.contents[0]) except IndexError: title = 'No title [%s]' % item.find('post_name').string @@ -465,7 +465,7 @@ def fields2pelican(fields, out_markup, output_path, def main(): parser = argparse.ArgumentParser( - description="Transform feed, Wordpress or Dotclear files to reST (rst) " + description="Transform feed, Posterous, Wordpress or Dotclear files to reST (rst) " "or Markdown (md) files. Be sure to have pandoc installed.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)