Skip to content

Commit

Permalink
Merge pull request #6 from queryverse/fix-julia07dep
Browse files Browse the repository at this point in the history
Use nextind instead of chr2ind
  • Loading branch information
davidanthoff authored Oct 20, 2018
2 parents 4e28a47 + 5025943 commit c58cd5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# TableShowUtils.jl v0.2.1 Release Notes
* Fix a remaining julia deprecation bug

# TableShowUtils.jl v0.2.0 Release Notes
* Add support for dataresource MIME type

Expand Down
2 changes: 1 addition & 1 deletion src/TableShowUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function printtable(io::IO, source, typename::AbstractString; force_unknown_rows
if size(data,2)==1
for r in 1:size(data,1)
if length(data[r,1])>available_width
data[r,1] = data[r,1][1:chr2ind(data[r,1],available_width-2)] * "\""
data[r,1] = data[r,1][1:nextind(data[r,1], 0, available_width-2)] * "\""
push!(shortened_rows, r)
end
end
Expand Down

0 comments on commit c58cd5d

Please sign in to comment.