forked from github/pelican
Merge pull request #880 from joeshaw/pre-index-fix
Exception on WP import looking for <pre> tag
This commit is contained in:
commit
7ec4d5faa2
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def decode_wp_content(content, br=True):
|
||||||
pre_index = 0
|
pre_index = 0
|
||||||
|
|
||||||
for pre_part in pre_parts:
|
for pre_part in pre_parts:
|
||||||
start = pre_part.index("<pre")
|
start = pre_part.find("<pre")
|
||||||
if start == -1:
|
if start == -1:
|
||||||
content = content + pre_part
|
content = content + pre_part
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue