From 2508f98ce1f105497665aeda019f398c95bd86b2 Mon Sep 17 00:00:00 2001 From: Henrik Nyh Date: Mon, 20 Feb 2023 05:41:49 +0000 Subject: [PATCH] Trim whitespace and newlines in instance rules list (#956) --- IceCubesApp/App/Tabs/Settings/InstanceInfoView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IceCubesApp/App/Tabs/Settings/InstanceInfoView.swift b/IceCubesApp/App/Tabs/Settings/InstanceInfoView.swift index f530c388..3ad4356d 100644 --- a/IceCubesApp/App/Tabs/Settings/InstanceInfoView.swift +++ b/IceCubesApp/App/Tabs/Settings/InstanceInfoView.swift @@ -38,7 +38,7 @@ public struct InstanceInfoSection: View { if let rules = instance.rules { Section("instance.info.section.rules") { ForEach(rules) { rule in - Text(rule.text) + Text(rule.text.trimmingCharacters(in: .whitespacesAndNewlines)) } } .listRowBackground(theme.primaryBackgroundColor)