Skip to content

Commit b7b5b66

Browse files
author
Brendt Wohlberg
committed
Bug fix
1 parent 46e809a commit b7b5b66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/docntbk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def write_notebook_rst(txt, res, fnm, pth):
500500
# Partial path for current output image
501501
rpth = os.path.join(extfnm, rnew)
502502
# In RST text, replace old output name with the new one
503-
txt = re.sub('\.\. image:: ' + r, '.. image:: ' + rpth, txt, re.M)
503+
txt = re.sub(r'\.\. image:: ' + r, '.. image:: ' + rpth, txt, re.M)
504504
# Full path of the current output image
505505
fullrpth = os.path.join(pth, rpth)
506506
# Write the current output image to disk

0 commit comments

Comments
 (0)