File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,8 @@ class ThebeButton(Directive):
214
214
has_content = False
215
215
216
216
def run (self ):
217
- text = self .arguments [0 ] if self .arguments else ''
218
- return [ThebeButtonNode (text )]
217
+ kwargs = { 'text' : self .arguments [0 ]} if self .arguments else {}
218
+ return [ThebeButtonNode (** kwargs )]
219
219
220
220
221
221
class JupyterCellNode (docutils .nodes .container ):
@@ -272,8 +272,8 @@ class ThebeButtonNode(docutils.nodes.Element):
272
272
If no ThebeButton directive is found in the document but thebelab
273
273
is enabled, the node is added at the bottom of the document.
274
274
"""
275
- def __init__ (self , text ):
276
- super ().__init__ ('' , text = text or 'Make live' )
275
+ def __init__ (self , text = 'Make live' ):
276
+ super ().__init__ ('' , text = text )
277
277
278
278
def html (self ):
279
279
text = self ['text' ]
You can’t perform that action at this time.
0 commit comments