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"); .expect("written to config file");
} }
let pound = if section != "global" { "#" } else { "" }; let pound = if section != "global" { "\n#" } else { "" };
file.write_fmt(format_args!("\n{pound}[{section}]\n")) file.write_fmt(format_args!("\n\n{pound}[{section}]\n"))
.expect("written to config file"); .expect("written to config file");
} }

View File

@@ -15,6 +15,7 @@
### For more information, see: ### For more information, see:
### https://tuwunel.chat/configuration.html ### https://tuwunel.chat/configuration.html
[global] [global]
# The server_name is the pretty name of this server. It is used as a # The server_name is the pretty name of this server. It is used as a
@@ -1833,6 +1834,8 @@
# #
#one_time_key_limit = 256 #one_time_key_limit = 256
#[global.tls] #[global.tls]
# Path to a valid TLS certificate file. # Path to a valid TLS certificate file.
@@ -1851,6 +1854,8 @@
# #
#dual_protocol = false #dual_protocol = false
#[global.well_known] #[global.well_known]
# The server URL that the client well-known file will serve. This should # The server URL that the client well-known file will serve. This should
@@ -1913,6 +1918,8 @@
# #
#rtc_transports = [] #rtc_transports = []
#[global.blurhashing] #[global.blurhashing]
# blurhashing x component, 4 is recommended by https://blurha.sh/ # blurhashing x component, 4 is recommended by https://blurha.sh/
@@ -1931,6 +1938,8 @@
# #
#blurhash_max_raw_size = 33554432 #blurhash_max_raw_size = 33554432
#[global.ldap] #[global.ldap]
# Whether to enable LDAP login. # Whether to enable LDAP login.
@@ -2018,6 +2027,8 @@
# #
#admin_filter = #admin_filter =
#[global.jwt] #[global.jwt]
# Enable JWT logins # Enable JWT logins
@@ -2084,6 +2095,8 @@
# #
#validate_signature = true #validate_signature = true
#[global.appservice.<ID>] #[global.appservice.<ID>]
# The URL for the application service. # The URL for the application service.
@@ -2126,6 +2139,8 @@
# #
#device_management = false #device_management = false
#[[global.appservice.<ID>.<users|rooms|aliases>]] #[[global.appservice.<ID>.<users|rooms|aliases>]]
# Whether this application service has exclusive access to events within # Whether this application service has exclusive access to events within