Skip to content

Commit

Permalink
Merge pull request godotengine#90579 from shana/vs-fix-line-endings
Browse files Browse the repository at this point in the history
Visual Studio: Fix indentation in sln file, VS is VERY PICKY
  • Loading branch information
akien-mga authored Apr 12, 2024
2 parents 30e7178 + 7336ec1 commit 029aade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,8 @@ def format_key_value(v):
sln_template = sln_template.replace("%%NAME%%", project_name)
sln_template = sln_template.replace("%%UUID%%", proj_uuid)
sln_template = sln_template.replace("%%SLNUUID%%", sln_uuid)
sln_template = sln_template.replace("%%SECTION1%%", "\n ".join(section1))
sln_template = sln_template.replace("%%SECTION2%%", "\n ".join(section2))
sln_template = sln_template.replace("%%SECTION1%%", "\n\t\t".join(section1))
sln_template = sln_template.replace("%%SECTION2%%", "\n\t\t".join(section2))

with open(f"{project_name}.sln", "w", encoding="utf-8", newline="\r\n") as f:
f.write(sln_template)
Expand Down

0 comments on commit 029aade

Please sign in to comment.