Skip to content

Commit

Permalink
Fix #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 and mwouts committed Dec 23, 2019
1 parent a95cbb7 commit 5a53b3d
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 5a53b3d

Please sign in to comment.