diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-12 00:57:52 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-12 00:57:52 +0300 |
commit | ae8152ad87b32c827fa681285717b7b6ae3176fd (patch) | |
tree | 58921381d725ede2ce6c12379a30bc6114124547 /telegram/formatter | |
parent | 5514bc9d16ae4f6c4d26cb66945a5027b93ebcfe (diff) |
Correction: XEP-0393 actually allows preformatted spans
Diffstat (limited to 'telegram/formatter')
-rw-r--r-- | telegram/formatter/formatter.go | 1 |
1 files changed, 0 insertions, 1 deletions
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) |