diff --git a/common/emotes.go b/common/emotes.go index fcd3746..052e265 100644 --- a/common/emotes.go +++ b/common/emotes.go @@ -48,7 +48,7 @@ func (em EmotesMap) Add(fullpath string) EmotesMap { } func EmoteToHtml(file, title string) string { - return fmt.Sprintf(``, file, title) + return fmt.Sprintf(``, file, title) } // Used with a regexp.ReplaceAllStringFunc() call. Needs to lookup the value as it @@ -56,7 +56,7 @@ func EmoteToHtml(file, title string) string { func emoteToHmtl2(key string) string { key = strings.Trim(key, ":[]") if val, ok := Emotes[key]; ok { - return fmt.Sprintf(``, val, key) + return fmt.Sprintf(``, val, key) } return key } diff --git a/common/emotes_test.go b/common/emotes_test.go index 0e61f87..0e3cf28 100644 --- a/common/emotes_test.go +++ b/common/emotes_test.go @@ -6,31 +6,31 @@ import ( ) var data_good = map[string]string{ - "one": ``, - "two": ``, - "three": ``, + "one": ``, + "two": ``, + "three": ``, - ":one:": ``, - ":two:": ``, - ":three:": ``, + ":one:": ``, + ":two:": ``, + ":three:": ``, - ":one::one:": ``, - ":one:one:": `one:`, + ":one::one:": ``, + ":one:one:": `one:`, "oneone": "oneone", - "one:one:": `one`, + "one:one:": `one`, - "[one]": ``, - "[two]": ``, - "[three]": ``, + "[one]": ``, + "[two]": ``, + "[three]": ``, - "[one][one]": ``, - "[one]one": `one`, + "[one][one]": ``, + "[one]one": `one`, - ":one: two [three]": ` `, + ":one: two [three]": ` `, - "nope one what": `nope what`, - "nope :two: what": `nope what`, - "nope [three] what": `nope what`, + "nope one what": `nope what`, + "nope :two: what": `nope what`, + "nope [three] what": `nope what`, } var data_wrapped = map[string]string{ diff --git a/static/css/site.css b/static/css/site.css index 5f06b58..5604b2a 100644 --- a/static/css/site.css +++ b/static/css/site.css @@ -124,6 +124,10 @@ input[type=text] { width: 112px; } +.emote { + height: 28px; +} + .notice { color: #595959; font-size: 75%;