diff --git a/rye/src/templates/pyproject.toml.j2 b/rye/src/templates/pyproject.toml.j2 index d3db4b9d97..ad1867395a 100644 --- a/rye/src/templates/pyproject.toml.j2 +++ b/rye/src/templates/pyproject.toml.j2 @@ -4,13 +4,13 @@ version = {{ version }} description = {{ description }} {%- if author %} authors = [ - { name = {{ author[0] }}, email = {{ author[1] }} } + { name = {{ author[0] }}, email = {{ author[1] }} } ] {%- endif %} {%- if dependencies %} dependencies = [ {%- for dependency in dependencies %} - {{ dependency }}, + {{ dependency }}, {%- endfor %} ] {%- else %} @@ -61,7 +61,7 @@ virtual = true {%- if dev_dependencies %} dev-dependencies = [ {%- for dependency in dev_dependencies %} - {{ dependency }}, + {{ dependency }}, {%- endfor %} ] {%- else %} diff --git a/rye/src/utils/toml.rs b/rye/src/utils/toml.rs index b38f5351ff..a2e905b851 100644 --- a/rye/src/utils/toml.rs +++ b/rye/src/utils/toml.rs @@ -31,10 +31,10 @@ pub fn reformat_array_multiline(deps: &mut Array) { let decor = item.decor_mut(); let mut prefix = String::new(); for comment in find_comments(decor.prefix()).chain(find_comments(decor.suffix())) { - prefix.push_str("\n "); + prefix.push_str("\n "); prefix.push_str(comment); } - prefix.push_str("\n "); + prefix.push_str("\n "); decor.set_prefix(prefix); decor.set_suffix(""); } @@ -44,7 +44,7 @@ pub fn reformat_array_multiline(deps: &mut Array) { let mut rv = String::new(); if comments.peek().is_some() { for comment in comments { - rv.push_str("\n "); + rv.push_str("\n "); rv.push_str(comment); } }