Mercurial > libervia-backend
diff frontends/src/jp/cmd_blog.py @ 1969:5fbe09b9b568
merged main branch
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 24 Jun 2016 22:41:28 +0200 |
parents | 3e168cde7a7d eca59bc4e6c6 |
children | b4a515e36631 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py Mon Jun 20 23:07:53 2016 +0200 +++ b/frontends/src/jp/cmd_blog.py Fri Jun 24 22:41:28 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