mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-25 22:42:38 +01:00
Trim whitespace and newlines in instance rules list (#956)
This commit is contained in:
parent
3038225371
commit
2508f98ce1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user