mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Include index in format() string.
Argument index is included in .format() method format string in order to be friendly with various Python versions and consistent with the rest of the code.
This commit is contained in:
parent
ec14df9fbb
commit
515847fdd2
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ def fields2pelican(fields, out_markup, output_path, dircat=False, strip_raw=Fals
|
|||
# Replace newlines with paragraphs wrapped with <p> so
|
||||
# HTML is valid before conversion
|
||||
paragraphs = content.split('\n\n')
|
||||
paragraphs = [u'<p>{}</p>'.format(p) for p in paragraphs]
|
||||
paragraphs = [u'<p>{0}</p>'.format(p) for p in paragraphs]
|
||||
new_content = ''.join(paragraphs)
|
||||
|
||||
fp.write(new_content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue