Skip to content

Commit

Permalink
🔪 Remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebaltazar committed Nov 4, 2024
1 parent d72c494 commit b526338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Maui.ServerDrivenUI/Services/XamlConverterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ public static string ConvertToXml(ServerUIElement element)
var contentPropertiesBuilder = ParseProperties(element, strBuilder);

strBuilder.Append('>');
strBuilder.AppendLine();

strBuilder.AppendJoin('\n', element.Content.Select(c => c.ToXaml(element.CustomNamespaces)));
strBuilder.AppendLine();
if (element.Content.Count > 0)
{
strBuilder.AppendLine();
strBuilder.AppendJoin('\n', element.Content.Select(c => c.ToXaml(element.CustomNamespaces)));
strBuilder.AppendLine();
}

strBuilder.Append(contentPropertiesBuilder);

strBuilder.AppendLine();
Expand Down

0 comments on commit b526338

Please sign in to comment.