text components prints with tags

This commit is contained in:
Admin Else
2026-04-01 16:43:47 +02:00
parent 35772aca03
commit e5212624af
+6
View File
@@ -583,6 +583,12 @@ func (c *Component) writePretty(sb *strings.Builder) {
// This is a simplified version of translation handling
// In a real client, this would look up the translation key
sb.WriteString(c.Translate)
sb.WriteRune('(')
for _, w := range c.With {
w.writePretty(sb)
sb.WriteByte(',')
}
sb.WriteRune(')')
}
for _, extra := range c.Extra {