From ae8152ad87b32c827fa681285717b7b6ae3176fd Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Fri, 11 Mar 2022 16:57:52 -0500 Subject: [PATCH] Correction: XEP-0393 actually allows preformatted spans --- telegram/formatter/formatter.go | 1 - 1 file changed, 1 deletion(-) diff --git a/telegram/formatter/formatter.go b/telegram/formatter/formatter.go index 6d40720..eca514a 100644 --- a/telegram/formatter/formatter.go +++ b/telegram/formatter/formatter.go @@ -166,7 +166,6 @@ func EntityToXEP0393(entity *client.TextEntity) (*Insertion, *Insertion) { case client.TypeTextEntityTypeStrikethrough: return markupBraces(entity, strikeRunesXEP0393, strikeRunesXEP0393) case client.TypeTextEntityTypeCode: - // inline code is non-standard return markupBraces(entity, codeRunes, codeRunes) case client.TypeTextEntityTypePre: return markupBraces(entity, preRuneStart, preRuneEnd)