AppendRune adds one rune and associated formatting info
(bg image.Image, deco styles.TextDecorations)
| 135 | |
| 136 | // AppendRune adds one rune and associated formatting info |
| 137 | func (sr *Span) HasDecoUpdate(bg image.Image, deco styles.TextDecorations) { |
| 138 | sr.HasDeco |= deco |
| 139 | if bg != nil { |
| 140 | sr.HasDeco.SetFlag(true, styles.DecoBackgroundColor) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // IsNewPara returns true if this span starts a new paragraph |
| 145 | func (sr *Span) IsNewPara() bool { |
no test coverage detected