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

Commit eda8da0

Browse files
committed
another change for css loading
1 parent d756534 commit eda8da0

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

MarkdownPreview.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ def get_default_css(self, parser):
170170
css_name = self.settings.get('css', 'default')
171171
css_path = None
172172

173-
mdfile = self.view.file_name()
174-
if css_name == 'default':
175-
# use builtin CSS
176-
css_path = get_ressource_path('github.css' if parser == 'github' else 'markdown.css')
177-
elif self.isurl(css_name):
173+
# use default CSS
174+
css_path = get_ressource_path('github.css' if parser == 'github' else 'markdown.css')
175+
176+
if self.isurl(css_name):
178177
# link to remote URL
179178
return u"<link href='%s' rel='stylesheet' type='text/css'>" % css_name
180179
elif os.path.isfile(os.path.expanduser(css_name)):

0 commit comments

Comments
 (0)