changeset 1968:eca59bc4e6c6

jp (blog): fixed syntax detection when extension is .txt
author Goffi <goffi@goffi.org>
date Fri, 24 Jun 2016 22:32:58 +0200
parents 8226f9539580
children 5fbe09b9b568 b34fdb44b7d4
files frontends/src/jp/cmd_blog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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