From 75921ceaf40f3ced597d99c43794b98f81e49957 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 29 Mar 2018 20:50:15 +0100 Subject: [PATCH] Enclose tree report image path and file name in braces Fixes #10495. --- gramps/gen/plug/docgen/treedoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/plug/docgen/treedoc.py b/gramps/gen/plug/docgen/treedoc.py index 7d78274f0..4918090ae 100644 --- a/gramps/gen/plug/docgen/treedoc.py +++ b/gramps/gen/plug/docgen/treedoc.py @@ -461,7 +461,8 @@ class TreeDocBase(BaseDoc, TreeDoc): if os.path.isfile(path): if win(): 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 self.write(level, '}\n')