Skip to content

Commit

Permalink
Allow adding of empty figure
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Aug 23, 2022
1 parent 0e1378c commit 65b08a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hdmf_docutils/doctools/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ def add_figure(self,
"""
Add a Figure to the document
:param figure: RSTFigure to add to the document
:param figure: RSTFigure to add to the document. If set to None then do nothing
"""
figure.render(rst_doc=self)
if figure is not None:
figure.render(rst_doc=self)

def add_sidebar(self, text, title, subtitle=None):
"""
Expand Down

0 comments on commit 65b08a3

Please sign in to comment.