changeset 1883:abb2f253188e

jp (blog): fixed syntax guessing on existing files
author Goffi <goffi@goffi.org>
date Sat, 05 Mar 2016 18:00:12 +0100
parents ed444e9aa078
children 0fe69871b71f
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 Mar 05 17:59:10 2016 +0100
+++ b/frontends/src/jp/cmd_blog.py	Sat Mar 05 18:00:12 2016 +0100
@@ -96,7 +96,7 @@
         if ext:
             for k,v in SYNTAX_EXT.iteritems():
                 if ext == v:
-                    return v
+                    return k
 
         # if not found, we use current syntax
         return self.host.bridge.getParamA("Syntax", "Composition", "value", self.profile)