From 7336ec1f7e9649db5da09b9230e69b0947a4e815 Mon Sep 17 00:00:00 2001 From: Andreia Gaita Date: Fri, 12 Apr 2024 16:04:35 +0200 Subject: [PATCH] Visual Studio: Fix indentation in sln file, VS is VERY PICKY --- methods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/methods.py b/methods.py index dd01469b8691..4d1f4c1cda6f 100644 --- a/methods.py +++ b/methods.py @@ -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)