This PR is taken from master (aef1114) to avoid huge PR or breaking dependency while it is being reviewed.
I tried to commit locally it on master and got a merge conflict (solved by accepting the more recent version):
By design the Cruddiy code generator is writing a lot of strings into files. Many of these are stored in a hard to read, syntax-coloration blocking, error-prone, bulky format. Example: the config file generator:
This PR is taken from master (aef1114) to avoid huge PR or breaking dependency while it is being reviewed.
I tried to commit locally it on master and got a merge conflict (solved by accepting the more recent version):
By design the Cruddiy code generator is writing a lot of strings into files. Many of these are stored in a hard to read, syntax-coloration blocking, error-prone, bulky format. Example: the config file generator:
This PR replaces the long string concatenation by a clean template which is opened for value replacement and written to the config file:
I hope this template is the first step to a lot of decluttering of the core.
I've also eliminated config file path repetition by using a variable, and removed extra trailing whitespaces (editor plugin).