Fix BaseEntity.String()

This commit is contained in:
Tulir Asokan 2022-04-15 22:36:06 +03:00
parent 6414b8bd13
commit fa7a4d8320

View File

@ -82,7 +82,7 @@ func (be *BaseEntity) PlainText() string {
// String returns a textual representation of this BaseEntity struct.
func (be *BaseEntity) String() string {
return fmt.Sprintf(`&html.BaseEntity{Tag="%s", Style=%d, Block=%t, startX=%d, height=%d}`,
return fmt.Sprintf(`&html.BaseEntity{Tag="%s", Style=%#v, Block=%t, startX=%d, height=%d}`,
be.Tag, be.Style, be.Block, be.startX, be.height)
}