Right Space fix
Vladimir Bauer
8 years ago
| 349 | 349 | |
| 350 | 350 | // render append functions to the right of the bar |
| 351 | 351 | s.bufA.Reset() |
| 352 | if !s.trimRightSpace { | |
| 353 | s.bufA.WriteByte(' ') | |
| 354 | } | |
| 355 | ||
| 352 | 356 | for i, f := range s.appendFuncs { |
| 353 | 357 | s.bufA.WriteString(f(stat, appendWs.Listen[i], appendWs.Result[i])) |
| 354 | } | |
| 355 | ||
| 356 | if !s.trimRightSpace { | |
| 357 | s.bufA.WriteByte(' ') | |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | prependCount := utf8.RuneCount(s.bufP.Bytes()) |