Config: Fix addition of preamble
Remove the extraneous newlines from the beginning of the preamble. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
f6fb60a6ed
commit
ececce172e
1 changed files with 6 additions and 3 deletions
|
|
@ -172,8 +172,8 @@ def generate_config_file(
|
|||
) -> None:
|
||||
"""Creates a config.yml file from Pydantic models."""
|
||||
|
||||
# Add a preamble
|
||||
yaml = dedent("""
|
||||
# Add a cleaned up preamble
|
||||
preamble = """
|
||||
# Sample YAML file for configuration.
|
||||
# Comment and uncomment values as needed.
|
||||
# Every value has a default within the application.
|
||||
|
|
@ -181,7 +181,10 @@ def generate_config_file(
|
|||
|
||||
# Unless specified in the comments, DO NOT put these options in quotes!
|
||||
# You can use https://www.yamllint.com/ if you want to check your YAML formatting.\n
|
||||
""")
|
||||
"""
|
||||
|
||||
# Trim and cleanup preamble
|
||||
yaml = dedent(preamble).lstrip()
|
||||
|
||||
schema = unwrap(model, TabbyConfigModel())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue