From 681f78856a3791cefca6126ee99201edb2c33467 Mon Sep 17 00:00:00 2001
From: CMK
Date: Thu, 22 Jul 2021 13:06:22 +0800
Subject: [PATCH] fix: ActiveLabel not respect paragraph tag issue
---
Mastodon/Helper/MastodonStatusContent.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mastodon/Helper/MastodonStatusContent.swift b/Mastodon/Helper/MastodonStatusContent.swift
index 90e697daf..917c456d2 100755
--- a/Mastodon/Helper/MastodonStatusContent.swift
+++ b/Mastodon/Helper/MastodonStatusContent.swift
@@ -29,7 +29,7 @@ public enum MastodonStatusContent {
public static func parse(content: String, emojiDict: EmojiDict) throws -> MastodonStatusContent.ParseResult {
let document: String = {
- var content = content
+ var content = content.replacingOccurrences(of: "
", with: "\r\n")
for (shortcode, url) in emojiDict {
let emojiNode = "\(shortcode)"
let pattern = ":\(shortcode):"