Added an analyzer which keeps line breaks LF on every system (#1193)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-11 19:30:00 +01:00
1 parent b1c1f13993
commit 65d50de033
96 files changed
+741 -393

No files matched your search

@@ -574,7 +574,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
private static string BuildSecureSystemPrompt(string pluginSystemPrompt)
{
var separator = $"{Environment.NewLine}{Environment.NewLine}";
var separator = "\n\n";
return string.IsNullOrWhiteSpace(pluginSystemPrompt) ? $"{SECURITY_SYSTEM_PROMPT_PREAMBLE}{separator}{SECURITY_SYSTEM_PROMPT_POSTAMBLE}" : $"{SECURITY_SYSTEM_PROMPT_PREAMBLE}{separator}{pluginSystemPrompt.Trim()}{separator}{SECURITY_SYSTEM_PROMPT_POSTAMBLE}";
}
@@ -939,7 +939,7 @@ public sealed class PluginAssistants(bool isInternal, LuaState state, PluginType
builder.Append(string.IsNullOrWhiteSpace(stateful.UserPrompt) ? "empty" : "set");
}
builder.AppendLine();
builder.AppendLineLF();
if (component.Children.Count > 0)
AppendComponentSummary(builder, component.Children, depth + 1);