AStyle 3.1 will change the contents of strings during indentation.
public static string EnvSetup => $"{Unsetr} set PATH={string.Join(";", EnvironmentPaths)};%PATH%";
becomes
public static string EnvSetup => $"{Unsetr} set PATH={string.Join("; ", EnvironmentPaths)};%PATH%";
where there is an extra space added after the ";" in the middle of the string.
Hi, I know it is an old issue and maybe no longer relevant but which syntax supports this kind of strings? For astyle these are just two strings split by a single semicolon.
This is string interpolation in C#.
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated
It was introduced in version 6.
https://www.w3schools.com/cs/cs_strings_interpol.php
Seemingly, interpolation can also be nested, see following examples:
See online demo https://ideone.com/9mzYUB
Last edit: w-peuker 2023-02-09
(deleted)
Last edit: w-peuker 2023-02-09
OK now I got it
You can test a fix in the latest 3.2 beta 3 release.