diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-07-21 14:50:23 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-07-25 06:00:49 +0000 |
commit | e8e46ab553bce9aac9adcaf2ac4ee1207b69ac93 (patch) | |
tree | 32bf7963c0d7d71309b62026e01f8586fffe5aee /src/plugins/scxmleditor | |
parent | 5df0f97d2f4f90decbc2fb263704755857416846 (diff) | |
download | qt-creator-e8e46ab553bce9aac9adcaf2ac4ee1207b69ac93.tar.gz |
Plugins: Fix that mimetype definition was not valid JSON
JSON officially does not support multiline strings, so we should use
the same mechanism that we already use for the plugin description
(i.e. additionally support arrays of strings which are interpreted
as lines).
This just happens to work because Qt's JSON parser eats it without
choking.
Change-Id: I25ef04600b209775c5a7af916c687fda4a8b1a4d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r-- | src/plugins/scxmleditor/ScxmlEditor.json.in | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/scxmleditor/ScxmlEditor.json.in b/src/plugins/scxmleditor/ScxmlEditor.json.in index 1e48677f5f..1218f4129b 100644 --- a/src/plugins/scxmleditor/ScxmlEditor.json.in +++ b/src/plugins/scxmleditor/ScxmlEditor.json.in @@ -18,14 +18,14 @@ \"Experimental\" : true, $$dependencyList, - \"Mimetypes\" : \" - <?xml version=\'1.0\'?> - <mime-info xmlns=\'http://www.freedesktop.org/standards/shared-mime-info\'> - <mime-type type=\'application/scxml+xml\'> - <sub-class-of type=\'text/xml\'/> - <comment>SCXML file</comment> - <glob pattern=\'*.scxml\'/> - </mime-type> - </mime-info> - \" + \"Mimetypes\" : [ + \"<?xml version=\'1.0\'?>\", + \"<mime-info xmlns=\'http://www.freedesktop.org/standards/shared-mime-info\'>\", + \" <mime-type type=\'application/scxml+xml\'>\", + \" <sub-class-of type=\'text/xml\'/>\", + \" <comment>SCXML file</comment>\", + \" <glob pattern=\'*.scxml\'/>\", + \" </mime-type>\", + \"</mime-info>\" + ] } |