Fix separator parsing in update view (#502)

This commit is contained in:
Max Goedjen 2024-01-05 12:33:10 -08:00 committed by GitHub
parent afc54c5e40
commit 5af84583ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ struct UpdateDetailView<UpdaterType: Updater>: View {
for line in update.body.split(whereSeparator: \.isNewline) { for line in update.body.split(whereSeparator: \.isNewline) {
let attributed: Text let attributed: Text
let split = line.split(separator: " ") let split = line.split(separator: " ")
let unprefixed = split.dropFirst().joined() let unprefixed = split.dropFirst().joined(separator: " ")
if let prefix = split.first { if let prefix = split.first {
switch prefix { switch prefix {
case "#": case "#":