Skip to content

Commit b067c11

Browse files
committed
Replace dots with underscores when creating env var examples
Signed-off-by: RD WebDesign <[email protected]>
1 parent 0b53419 commit b067c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pihole_toml_to_markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def parse_toml_with_comments(filepath):
156156

157157
# Compose full key for CLI/env var examples
158158
full_key = ".".join(section_stack + [key])
159-
env_var = "FTLCONF_" + "_".join(section_stack + [key])
159+
env_var = "FTLCONF_" + full_key.replace(".", "_")
160160

161161
# TOML example tab
162162
documentation.append(f'=== "TOML"')

0 commit comments

Comments
 (0)