mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Don't add any space around Emojis
This commit is contained in:
@@ -15,8 +15,9 @@ package helpers
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/kyokomi/emoji"
|
||||
"sync"
|
||||
|
||||
"github.com/kyokomi/emoji"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -85,7 +86,7 @@ func initEmoji() {
|
||||
emojiMap := emoji.CodeMap()
|
||||
|
||||
for k, v := range emojiMap {
|
||||
emojis[k] = []byte(v + emoji.ReplacePadding)
|
||||
emojis[k] = []byte(v)
|
||||
|
||||
if len(k) > emojiMaxSize {
|
||||
emojiMaxSize = len(k)
|
||||
|
Reference in New Issue
Block a user