Skip to content

Commit

Permalink
Allow blank spaces in jupytext.formats #105
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 25, 2018
1 parent ad2127c commit 733675a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupytext/contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def check_formats(formats):
for fmt in group:
if not fmt:
continue
fmt, _ = parse_one_format(fmt)
fmt, _ = parse_one_format(fmt.strip())
if not any([fmt.endswith(ext) for ext in allowed_extension]):
raise ValueError('Group extension {} contains {}, which does not end with either {}.\n{}'
.format(str(group), fmt, str(allowed_extension), expected_format))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def test_metadata_filter_is_effective(nb_file, tmpdir):
cm.save(model=dict(type='notebook', content=nb), path=tmp_ipynb)

# set config
cm.default_jupytext_formats = 'ipynb,py'
cm.default_jupytext_formats = 'ipynb, py'
cm.default_notebook_metadata_filter = 'jupytext-all'
cm.default_cell_metadata_filter = '-all'

Expand Down

0 comments on commit 733675a

Please sign in to comment.