Skip to content

Commit f85730d

Browse files
committed
Allow whitespace in filenames
Without this, a space in a filename makes it into two separate arguments. This aligns with the literalinclude directive, which also takes filenames: https://github.com/sphinx-doc/sphinx/blob/7bdc11e87c7d86dcc2a087eccb7a7c129a473415/sphinx/directives/code.py#L374
1 parent 65ea686 commit f85730d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jupyterlite_sphinx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class _LiteDirective(SphinxDirective):
168168

169169
has_content = False
170170
optional_arguments = 1
171+
final_argument_whitespace = True
171172
option_spec = {
172173
"width": directives.unchanged,
173174
"height": directives.unchanged,

0 commit comments

Comments
 (0)