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')