Skip to content
Permalink
Browse files
Documentation for #2832
  • Loading branch information
Kwpolska committed Jun 11, 2017
1 parent 39fe4da commit b54a1a4c4ad60c8de4829d318d401e045e6bf66c
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES.txt
  2. +1 −1 nikola/plugin_categories.py
@@ -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.
@@ -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)

0 comments on commit b54a1a4

Please sign in to comment.