diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-19 21:54:53 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-19 21:54:53 +0200 |
commit | 15e1d3f87c5e18f3429c49d21b30e66fb2a9cff7 (patch) | |
tree | 44146fe934a20cd688e83d5d059bd074b2ff633f /ui/messages/html/break.go | |
parent | af99c76d460f190e873ed88432c9a8b08324200b (diff) |
Fix rendering formatted m.emotes
Diffstat (limited to 'ui/messages/html/break.go')
-rw-r--r-- | ui/messages/html/break.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/messages/html/break.go b/ui/messages/html/break.go index ea67ead..fca1d0e 100644 --- a/ui/messages/html/break.go +++ b/ui/messages/html/break.go @@ -16,6 +16,10 @@ package html +import ( + "maunium.net/go/mauview" +) + type BreakEntity struct { *BaseEntity } @@ -27,6 +31,12 @@ func NewBreakEntity() *BreakEntity { }} } +// AdjustStyle changes the style of this text entity. +func (be *BreakEntity) AdjustStyle(fn AdjustStyleFunc) Entity { + be.BaseEntity = be.BaseEntity.AdjustStyle(fn).(*BaseEntity) + return be +} + func (be *BreakEntity) Clone() Entity { return NewBreakEntity() } @@ -38,3 +48,7 @@ func (be *BreakEntity) PlainText() string { func (be *BreakEntity) String() string { return "&html.BreakEntity{},\n" } + +func (be *BreakEntity) Draw(screen mauview.Screen) { + // No-op, the logic happens in containers +} |