Skip to content

Commit b53ef51

Browse files
committed
test impl for gap filling
1 parent 7aa92b7 commit b53ef51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/formatting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func InsertTagsIntoText(text string, tags []Tag) string {
263263
closeTags[int(tag.Offset+tag.Length)] = append(closeTags[int(tag.Offset+tag.Length)], tag)
264264
}
265265

266-
result := make([]uint16, len(utf16Text))
266+
result := make([]uint16, 0, len(utf16Text)*2)
267267
for i := 0; i < len(utf16Text); i++ {
268268
if opening, exists := openTags[i]; exists {
269269
for _, tag := range opening {

0 commit comments

Comments
 (0)