mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-12 03:16:55 +02:00
update description used on the command line to include Posterous as recognized input fromat
This commit is contained in:
parent
675d6c81cd
commit
7498fb8eff
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ def wp2fields(xml):
|
||||||
if item.find('status').string == "publish":
|
if item.find('status').string == "publish":
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Use HTMLParser due to issues with BeautifulSoup 3
|
# Use HTMLParxser due to issues with BeautifulSoup 3
|
||||||
title = HTMLParser().unescape(item.title.contents[0])
|
title = HTMLParser().unescape(item.title.contents[0])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
title = 'No title [%s]' % item.find('post_name').string
|
title = 'No title [%s]' % item.find('post_name').string
|
||||||
|
|
@ -465,7 +465,7 @@ def fields2pelican(fields, out_markup, output_path,
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
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.",
|
"or Markdown (md) files. Be sure to have pandoc installed.",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue