Skip to content

Commit c58cd5d

Browse files
authored
Merge pull request #6 from queryverse/fix-julia07dep
Use nextind instead of chr2ind
2 parents 4e28a47 + 5025943 commit c58cd5d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# TableShowUtils.jl v0.2.1 Release Notes
2+
* Fix a remaining julia deprecation bug
3+
14
# TableShowUtils.jl v0.2.0 Release Notes
25
* Add support for dataresource MIME type
36

src/TableShowUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function printtable(io::IO, source, typename::AbstractString; force_unknown_rows
4242
if size(data,2)==1
4343
for r in 1:size(data,1)
4444
if length(data[r,1])>available_width
45-
data[r,1] = data[r,1][1:chr2ind(data[r,1],available_width-2)] * "\""
45+
data[r,1] = data[r,1][1:nextind(data[r,1], 0, available_width-2)] * "\""
4646
push!(shortened_rows, r)
4747
end
4848
end

0 commit comments

Comments
 (0)