mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
Merge pull request #231 from ljcooke/config-md-unicode
Read config.md as UTF-8
This commit is contained in:
commit
8577fe71cc
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue