Merge pull request #231 from ljcooke/config-md-unicode

Read config.md as UTF-8
This commit is contained in:
Damien Elmes 2018-04-06 16:47:31 +10:00 committed by GitHub
commit ba378394cf

View file

@ -216,7 +216,7 @@ When loading '%(name)s':
def addonConfigHelp(self, dir):
path = os.path.join(self.addonsFolder(dir), "config.md")
if os.path.exists(path):
with open(path) as f:
with open(path, encoding="utf-8") as f:
return markdown.markdown(f.read())
else:
return ""