Enclose tree report image path and file name in braces

Fixes #10495.
This commit is contained in:
Nick Hall 2018-03-29 20:50:15 +01:00
parent 310bece2bc
commit 75921ceaf4

View File

@ -461,7 +461,8 @@ class TreeDocBase(BaseDoc, TreeDoc):
if os.path.isfile(path): if os.path.isfile(path):
if win(): if win():
path = path.replace('\\', '/') path = path.replace('\\', '/')
self.write(level+1, 'image = {%s},\n' % path) self.write(level+1, 'image = {{%s}%s},\n' %
os.path.splitext(path))
break # first image only break # first image only
self.write(level, '}\n') self.write(level, '}\n')