Skip to content

Commit

Permalink
Update src/PrettyPrinting.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
  • Loading branch information
aaruni96 and lgoettgens authored Feb 2, 2024
1 parent 6dfa52f commit aaa8adc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/PrettyPrinting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1591,8 +1591,6 @@ function _write_line(io::IOCustom, str::AbstractString)
spaceleft = c - ind - io.printed
end
#@show spaceleft
# maybe rewrite using https://docs.julialang.org/en/v1/stdlib/Unicode/#Unicode.graphemes
# once minimum supported version for package is Julia 1.9
_graphemes = Base.Unicode.graphemes(str)
firstlen = min(spaceleft, length(_graphemes))
# make an iterator over valid indices
Expand Down

0 comments on commit aaa8adc

Please sign in to comment.