# HG changeset patch # User Goffi # Date 1455806507 -3600 # Node ID d8c6c55aafd742a69fc32c06f7544c867704834b # Parent fdc1dfcee35ef2fdbf1fecaac28a72ea756e7e94 plugin text syntaxes: fixed defaut syntax handling diff -r fdc1dfcee35e -r d8c6c55aafd7 src/plugins/plugin_misc_text_syntaxes.py --- a/src/plugins/plugin_misc_text_syntaxes.py Wed Feb 10 12:48:19 2016 +0100 +++ b/src/plugins/plugin_misc_text_syntaxes.py Thu Feb 18 15:41:47 2016 +0100 @@ -122,6 +122,7 @@ def _updateParamOptions(self): data_synt = TextSyntaxes.params_data['syntaxes'] + default_synt = TextSyntaxes.params_data.get('default', _SYNTAX_XHTML) syntaxes = [] for syntax in data_synt.keys(): @@ -133,7 +134,7 @@ options = [] for syntax in syntaxes: - selected = 'selected="true"' if syntax == _SYNTAX_XHTML else '' + selected = 'selected="true"' if syntax == default_synt else '' options.append(u'