Add more linespace between example config sections.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-12-24 19:50:28 +00:00
parent 568a28220c
commit e019ed77d0
2 changed files with 17 additions and 2 deletions

View File

@@ -73,8 +73,8 @@ fn generate_example(input: &ItemStruct, args: &[Meta], write: bool) -> Result<To
.expect("written to config file");
}
let pound = if section != "global" { "#" } else { "" };
file.write_fmt(format_args!("\n{pound}[{section}]\n"))
let pound = if section != "global" { "\n#" } else { "" };
file.write_fmt(format_args!("\n\n{pound}[{section}]\n"))
.expect("written to config file");
}