mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Merge pull request #90579 from shana/vs-fix-line-endings
Visual Studio: Fix indentation in sln file, VS is VERY PICKY
This commit is contained in:
commit
029aadef56
@ -1621,8 +1621,8 @@ def generate_vs_project(env, original_args, project_name="godot"):
|
|||||||
sln_template = sln_template.replace("%%NAME%%", project_name)
|
sln_template = sln_template.replace("%%NAME%%", project_name)
|
||||||
sln_template = sln_template.replace("%%UUID%%", proj_uuid)
|
sln_template = sln_template.replace("%%UUID%%", proj_uuid)
|
||||||
sln_template = sln_template.replace("%%SLNUUID%%", sln_uuid)
|
sln_template = sln_template.replace("%%SLNUUID%%", sln_uuid)
|
||||||
sln_template = sln_template.replace("%%SECTION1%%", "\n ".join(section1))
|
sln_template = sln_template.replace("%%SECTION1%%", "\n\t\t".join(section1))
|
||||||
sln_template = sln_template.replace("%%SECTION2%%", "\n ".join(section2))
|
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:
|
with open(f"{project_name}.sln", "w", encoding="utf-8", newline="\r\n") as f:
|
||||||
f.write(sln_template)
|
f.write(sln_template)
|
||||||
|
Loading…
Reference in New Issue
Block a user