# HG changeset patch # User Goffi # Date 1466800378 -7200 # Node ID eca59bc4e6c67ef7bded84bbd99aaeda94468a3a # Parent 8226f95395804fc7af83fc3b093e949fd1bba738 jp (blog): fixed syntax detection when extension is .txt diff -r 8226f9539580 -r eca59bc4e6c6 frontends/src/jp/cmd_blog.py --- a/frontends/src/jp/cmd_blog.py Sat May 28 20:12:54 2016 +0200 +++ b/frontends/src/jp/cmd_blog.py Fri Jun 24 22:32:58 2016 +0200 @@ -147,7 +147,7 @@ ext = os.path.splitext(path)[1][1:] # we get extension without the '.' if ext: for k,v in SYNTAX_EXT.iteritems(): - if ext == v: + if k and ext == v: return k # if not found, we use current syntax