Skip to content
Permalink
Browse files
Fix #2887
  • Loading branch information
ralsina committed Aug 10, 2017
1 parent 1a6c922 commit 998cdd05e5c47d7b0adbb3563a38d3ce2b93b949
Showing with 4 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +3 −1 nikola/metadata_extractors.py
@@ -24,6 +24,7 @@ Features
Bugfixes
--------

* Handle empty slug metadata (Issue #2887)
* Fix crash when compiling empty ``.html`` posts (Issue #2851)
* Make failures to get source commit hash non-fatal in
``github_deploy`` (Issue #2847)
@@ -149,7 +149,9 @@ def _extract_metadata_from_text(self, source_text: str) -> dict:
for line in source_text.split('\n'):
match = self.nikola_re.match(line)
if match:
outdict[match.group(1)] = match.group(2)
k, v = match.group(1), match.group(2)
if v:
outdict[k] = v
return outdict

def write_metadata(self, metadata: dict, comment_wrap=False) -> str:

1 comment on commit 998cdd0

@Kwpolska

This comment has been minimized.

Copy link
Member

@Kwpolska Kwpolska commented on 998cdd0 Aug 10, 2017

👍

Please sign in to comment.