pull/21/head
Dominique Merle 3 years ago
parent c031aee5db
commit 99023d9220

@ -10,6 +10,8 @@ type Options struct {
Scale float64 // so we can use integers internally, and display floats
}
const defaultWidth = 79
// Formatter to implement to make another formatter
// Keep in mind you need to add it to the "if else if" in root command as well
type Formatter interface {

@ -25,8 +25,8 @@ func (t *TextFormatter) Format(
out := ""
expectedWidth := options.Width
if 0 >= expectedWidth {
expectedWidth = 79
if expectedWidth <= 0 {
expectedWidth = defaultWidth
}
proposalsResults := result.Proposals

Loading…
Cancel
Save