mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 17:07:21 +00:00
Added an analyzer which keeps line breaks LF on every system (#1193)
This commit is contained in:
1 parent
b1c1f13993
commit
65d50de033
96 files changed
+741
-393
No files matched your search
@@ -226,10 +226,10 @@ public static partial class SourceExtensions
|
||||
foreach (var group in sources.GroupSources())
|
||||
{
|
||||
if (sb.Length > 0)
|
||||
sb.AppendLine();
|
||||
sb.AppendLineLF();
|
||||
|
||||
sb.Append("## ");
|
||||
sb.AppendLine(group.Heading);
|
||||
sb.AppendLineLF(group.Heading);
|
||||
|
||||
foreach (var numberedSource in group.Sources)
|
||||
{
|
||||
@@ -241,7 +241,7 @@ public static partial class SourceExtensions
|
||||
else
|
||||
AppendMarkdownLink(sb, numberedSource.Source.Title, keepPageAnchors ? numberedSource.Source.URL : WithoutPageAnchor(numberedSource.Source.URL));
|
||||
|
||||
sb.AppendLine();
|
||||
sb.AppendLineLF();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ public static partial class SourceExtensions
|
||||
if (string.IsNullOrWhiteSpace(sourcesMarkdown))
|
||||
return string.Empty;
|
||||
|
||||
return $"# {TB("Sources")}{Environment.NewLine}{Environment.NewLine}{sourcesMarkdown}";
|
||||
return $"# {TB("Sources")}\n\n{sourcesMarkdown}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user