Skip to content

Commit

Permalink
Enable to wrap at word
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Sep 15, 2020
1 parent dca82f4 commit bde0524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ func newWidgets() (*widgets, error) {
if err != nil {
return nil, err
}
reportText, err := newRollText("Give the target URL and press Enter, then the attack will be launched.")
reportText, err := newText("Give the target URL and press Enter, then the attack will be launched.")
if err != nil {
return nil, err
}
navi, err := newRollText("Ctrl-c: quit, Enter: attack")
navi, err := newText("Ctrl-c: quit, Enter: attack")
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -98,8 +98,8 @@ func newLineChart() (*linechart.LineChart, error) {
)
}

func newRollText(s string) (*text.Text, error) {
t, err := text.New(text.RollContent())
func newText(s string) (*text.Text, error) {
t, err := text.New(text.RollContent(), text.WrapAtWords())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bde0524

Please sign in to comment.