mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix error strings whitespace
This commit is contained in:
parent
e87717d27c
commit
b8f7c584c5
2 changed files with 5 additions and 5 deletions
|
|
@ -887,7 +887,7 @@ def fields2pelican(
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Transform feed, Blogger, Dotclear, Posterous, Tumblr, or"
|
description="Transform feed, Blogger, Dotclear, Posterous, Tumblr, or "
|
||||||
"WordPress files into reST (rst) or Markdown (md) files. "
|
"WordPress files into reST (rst) or Markdown (md) files. "
|
||||||
"Be sure to have pandoc installed.",
|
"Be sure to have pandoc installed.",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
|
|
|
||||||
|
|
@ -616,11 +616,11 @@ def process_translations(content_list, translation_id=None):
|
||||||
content_list.sort(key=attrgetter(*translation_id))
|
content_list.sort(key=attrgetter(*translation_id))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise TypeError('Cannot unpack {}, \'translation_id\' must be falsy, a'
|
raise TypeError('Cannot unpack {}, \'translation_id\' must be falsy, a'
|
||||||
'string or a collection of strings'
|
' string or a collection of strings'
|
||||||
.format(translation_id))
|
.format(translation_id))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise AttributeError('Cannot use {} as \'translation_id\', there'
|
raise AttributeError('Cannot use {} as \'translation_id\', there '
|
||||||
'appear to be items without these metadata'
|
'appear to be items without these metadata '
|
||||||
'attributes'.format(translation_id))
|
'attributes'.format(translation_id))
|
||||||
|
|
||||||
for id_vals, items in groupby(content_list, attrgetter(*translation_id)):
|
for id_vals, items in groupby(content_list, attrgetter(*translation_id)):
|
||||||
|
|
@ -728,7 +728,7 @@ def order_content(content_list, order_by='slug'):
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
'Invalid *_ORDER_BY setting (%s).'
|
'Invalid *_ORDER_BY setting (%s). '
|
||||||
'Valid options are strings and functions.', order_by)
|
'Valid options are strings and functions.', order_by)
|
||||||
|
|
||||||
return content_list
|
return content_list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue