Skip to content
Snippets Groups Projects
Commit aae9370e authored by rswindell's avatar rswindell
Browse files

Updated the default sbbs.ini style when saving (improve readability):

- separate sections with a blank line (when adding a section)
- place spaces around '=' in value assignments ("key = value").
parent 91d0f46e
Branches
Tags
No related merge requests found
...@@ -740,13 +740,9 @@ BOOL sbbs_write_ini( ...@@ -740,13 +740,9 @@ BOOL sbbs_write_ini(
BOOL result=FALSE; BOOL result=FALSE;
str_list_t list; str_list_t list;
str_list_t* lp; str_list_t* lp;
ini_style_t style; ini_style_t style = { .key_prefix = "\t", .section_separator = "", .value_separator = " = ", .bit_separator = " | " };
global_startup_t global_buf; global_startup_t global_buf;
memset(&style, 0, sizeof(style));
style.key_prefix = "\t";
style.bit_separator = " | ";
if((list=iniReadFile(fp))==NULL) if((list=iniReadFile(fp))==NULL)
return(FALSE); return(FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment