changeset 2869:148d30147890

plugin text syntaxes: fixed default syntax
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2019 07:06:48 +0100
parents 5546613f5007
children 2f39682f6d40
files sat/plugins/plugin_misc_text_syntaxes.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_text_syntaxes.py	Mon Mar 25 07:06:41 2019 +0100
+++ b/sat/plugins/plugin_misc_text_syntaxes.py	Mon Mar 25 07:06:48 2019 +0100
@@ -42,7 +42,7 @@
 
 CATEGORY = D_("Composition")
 NAME = "Syntax"
-_SYNTAX_XHTML = "XHTML"
+_SYNTAX_XHTML = "xhtml"  # must be lower case
 _SYNTAX_CURRENT = "@CURRENT@"
 
 # TODO: check/adapt following list
@@ -157,6 +157,7 @@
     SYNTAX_MARKDOWN = "markdown"
     SYNTAX_TEXT = "text"
     syntaxes = {}
+    # default_syntax must be lower case
     default_syntax = SYNTAX_XHTML
 
     params = """
@@ -409,7 +410,7 @@
             "flags": flags,
         }
         if TextSyntaxes.OPT_DEFAULT in flags:
-            TextSyntaxes.default_syntaxe = key
+            TextSyntaxes.default_syntax = key
 
         self._updateParamOptions()