From 2da93aad1fb258cb7e7e377a9d53de14ec46a508 Mon Sep 17 00:00:00 2001 From: Himanshu Gohel <1551217+hgohel@users.noreply.github.com> Date: Sat, 8 Oct 2022 10:23:11 -0400 Subject: [PATCH] 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. --- gramps/gen/plug/docgen/treedoc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/gen/plug/docgen/treedoc.py b/gramps/gen/plug/docgen/treedoc.py index 142cd1ae9..99999e632 100644 --- a/gramps/gen/plug/docgen/treedoc.py +++ b/gramps/gen/plug/docgen/treedoc.py @@ -460,8 +460,7 @@ class TreeDocBase(BaseDoc, TreeDoc): if os.path.isfile(path): if win(): path = path.replace('\\', '/') - self.write(level+1, 'image = {{%s}%s},\n' % - os.path.splitext(path)) + self.write(level+1, 'image = {%s},\n' % path) break # first image only self.write(level, '}\n')