mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add Tumblr and Posterous to importer description
This commit is contained in:
parent
f83d0d3b0c
commit
e2f50750d2
1 changed files with 4 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ def decode_wp_content(content, br=True):
|
||||||
|
|
||||||
|
|
||||||
def wp2fields(xml):
|
def wp2fields(xml):
|
||||||
"""Opens a wordpress XML file, and yield pelican fields"""
|
"""Opens a wordpress XML file, and yield Pelican fields"""
|
||||||
try:
|
try:
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
@ -551,8 +551,9 @@ 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, WordPress, Tumblr, Dotclear, or Posterous "
|
||||||
"or Markdown (md) files. Be sure to have pandoc installed.",
|
"files into reST (rst) or Markdown (md) files. Be sure to "
|
||||||
|
"have pandoc installed.",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
|
|
||||||
parser.add_argument(dest='input', help='The input file to read')
|
parser.add_argument(dest='input', help='The input file to read')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue