Revert "Enclose tree report image path and file name in braces"
Fixes #12437 by reverting commit 75921ceaf40f3ced597d99c43794b98f81e49957 due to reports of regression where processing of the generated TeX file fails due to bad path specificiation for image files. Change was introduced in bug fix for #10495. Bugs #12437 and #12697 reported the regression and confirmed that reverting the change fixes the regression.
This commit is contained in:
parent
97434a0136
commit
2da93aad1f
@ -460,8 +460,7 @@ 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}%s},\n' %
|
self.write(level+1, 'image = {%s},\n' % path)
|
||||||
os.path.splitext(path))
|
|
||||||
break # first image only
|
break # first image only
|
||||||
self.write(level, '}\n')
|
self.write(level, '}\n')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user