mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 05:38:23 +00:00
Config file generation:
- Rename "possible values" to "allowed values" - Reorder items in initConfig to match the order of pihole.tom; - Improve readability of some items by adding extra line breaks, thus preventing walls of text in both toml and MD - Attempt to deduplicate information between the descriptive header and the allowed values for each setting - Explicilty add an allowed values section to all settings (even for things that may seem obvious) Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -253,7 +253,7 @@ void print_comment(FILE *fp, const char *str, const char *intro, const unsigned
|
|||||||
void print_toml_allowed_values(cJSON *allowed_values, FILE *fp, const unsigned int width, const unsigned int indent)
|
void print_toml_allowed_values(cJSON *allowed_values, FILE *fp, const unsigned int width, const unsigned int indent)
|
||||||
{
|
{
|
||||||
print_comment(fp, "", "", 85, indent);
|
print_comment(fp, "", "", 85, indent);
|
||||||
print_comment(fp, "", "Possible values are:", 85, indent);
|
print_comment(fp, "", "Allowed values are:", 85, indent);
|
||||||
if(cJSON_IsArray(allowed_values))
|
if(cJSON_IsArray(allowed_values))
|
||||||
{
|
{
|
||||||
// Loop over array items
|
// Loop over array items
|
||||||
|
|||||||
726
test/pihole.toml
726
test/pihole.toml
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user