jp (blog): fixed syntax detection when extension is .txt
This commit is contained in:
parent
091f7b3717
commit
fe8187a413
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ class BlogCommon(object):
|
||||||
ext = os.path.splitext(path)[1][1:] # we get extension without the '.'
|
ext = os.path.splitext(path)[1][1:] # we get extension without the '.'
|
||||||
if ext:
|
if ext:
|
||||||
for k,v in SYNTAX_EXT.iteritems():
|
for k,v in SYNTAX_EXT.iteritems():
|
||||||
if ext == v:
|
if k and ext == v:
|
||||||
return k
|
return k
|
||||||
|
|
||||||
# if not found, we use current syntax
|
# if not found, we use current syntax
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue