mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 16:49:17 +00:00
correctly handle showdiff with templates
This commit is contained in:
@@ -84,7 +84,8 @@ class Templategen:
|
||||
if not src.startswith(self.base):
|
||||
src = os.path.join(self.base, src)
|
||||
with open(src, 'rb') as f:
|
||||
return f.read()
|
||||
content = f.read()
|
||||
return content
|
||||
|
||||
def _read_bad_encoded_text(self, path):
|
||||
"""decode non utf-8 data"""
|
||||
|
||||
Reference in New Issue
Block a user