Skip to content

Commit

Permalink
Fix mwouts#404 empty line handling in metadata
Browse files Browse the repository at this point in the history
empty line is legal in YAML config section
  • Loading branch information
zhuoqiang authored Dec 20, 2019
1 parent 8cc0d83 commit 2aee348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def header_to_metadata_and_cell(lines, header_prefix, ext=None):

if _JUPYTER_RE.match(line):
injupyter = True
elif not _LEFTSPACE_RE.match(line):
elif line and not _LEFTSPACE_RE.match(line):
injupyter = False

if injupyter:
Expand Down

0 comments on commit 2aee348

Please sign in to comment.