ifrost / afterwriting-labs

Post-processing for Fountain screenplays
http://www.afterwriting.com
226 stars 38 forks source link

Fix `snippets` not loading from config.json in CLI client #103

Closed tryone144 closed 5 years ago

tryone144 commented 5 years ago

The last version does not populate the snippets property of the settings, thus not replacing these variables in the script. This PR changes the snippets property to be properly populated by the fromJSON method.

This feature is documented in https://github.com/ifrost/afterwriting-labs/blob/master/docs/clients.md#snippets for the CLI client. The client.fountain script works as intended again after applying this patch.

This regression was introduced between release v1.2.28 and v1.3.0, somewhere between 98ed12f and 955ebe3.