Skip to content
Permalink
Browse files

`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 8af0dfbc84a36ee7a5adffc8517288ac03ad5e3b
Showing with 4 additions and 4 deletions.
  1. +4 −4 nikola/plugin_categories.py
@@ -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):

0 comments on commit 8af0dfb

Please sign in to comment.
You can’t perform that action at this time.