Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Fix for meta extension list return format
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jul 27, 2014
1 parent 98829df commit ba80f75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MarkdownPreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,12 @@ def get_meta(self):
meta = []
for k, v in self.settings.get("meta", {}).items():
if k == "title":
self.meta_title = v
if isinstance(v, list):
if len(v) == 0:
v = ""
else:
v = v[0]
self.meta_title = unicode_str(v)
continue
if isinstance(v, list):
v = ','.join(v)
Expand Down

0 comments on commit ba80f75

Please sign in to comment.