Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Documentation for #2832
  • Loading branch information
Kwpolska committed Jun 11, 2017
1 parent 39fe4da commit b54a1a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -14,6 +14,8 @@ Features
Bugfixes
--------

* Fix two grave bugs in TOML metadata
* Require just one line break after TOML/YAML metadata
* Add alt attribute to images in galleries in base theme (Part of issue #2777)
* Support empty lines in YAML/TOML metadata (Part of issue #2801)
* Tests run on macOS.
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugin_categories.py
Expand Up @@ -336,7 +336,7 @@ def split_metadata(self, data):
"""Split data from metadata in the raw post content.
This splits in the first empty line that is NOT at the beginning
of the document.
of the document, or after YAML/TOML metadata without an empty line.
"""
if data.startswith('---'): # YAML metadata
split_result = re.split('(\n---\n|\r\n---\r\n)', data.lstrip(), maxsplit=1)
Expand Down

0 comments on commit b54a1a4

Please sign in to comment.