Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
splitted is not really a word
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 9, 2015
1 parent c867312 commit 8af0dfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nikola/plugin_categories.py
Expand Up @@ -276,11 +276,11 @@ def split_metadata(self, data):
This splits in the first empty line that is NOT at the beginning
of the document."""
splitted = re.split('(\n\n|\r\n\r\n)', data.lstrip(), maxsplit=1)
if len(splitted) == 1:
return '', splitted[0]
split_result = re.split('(\n\n|\r\n\r\n)', data.lstrip(), maxsplit=1)
if len(split_result) == 1:
return '', split_result[0]
# ['metadata', '\n\n', 'post content']
return splitted[0], splitted[-1]
return split_result[0], split_result[-1]


class RestExtension(BasePlugin):
Expand Down

0 comments on commit 8af0dfb

Please sign in to comment.