Skip to content

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
kdyrhage committed Sep 20, 2023
1 parent a99d3f2 commit 9a1494d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
@@ -24,12 +24,14 @@ function findbreak(v, t; width = 80, margin = 21)
1
j = i+t-1
j >= lastindex(v) && return nothing
x = findlast(c -> c == ' ' || c == '-', v[1:j])
x = findlast(c -> c == ' ' || c == '-', v[j-t+1:j])
if isnothing(x)
return j:j+1
elseif x == ' '
elseif v[x] == ' '
x += j - t
return x-1:x+1
else
x += j - t
return x:x+1
end
end

2 comments on commit 9a1494d

@kdyrhage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91755

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" 9a1494da97db8d928dc6718cf36ddd68495b28c8
git push origin v0.3.3

Please sign in to comment.