Skip to content

Commit

Permalink
Suppress &vellip; characters when 20 < n < tty_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Jul 8, 2015
1 parent 181ac2c commit 9f002da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/abstractdataframe/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ function Base.writemime(io::IO,
end
write(io, "</tr>")
tty_rows, tty_cols = Base.tty_size()
for row in 1:min(n, tty_rows)
mxrow = min(n,tty_rows)
for row in 1:mxrow
write(io, "<tr>")
write(io, "<th>$row</th>")
for column_name in cnames
Expand All @@ -151,7 +152,7 @@ function Base.writemime(io::IO,
end
write(io, "</tr>")
end
if n > 20
if n > mxrow
write(io, "<tr>")
write(io, "<th>&vellip;</th>")
for column_name in cnames
Expand Down

0 comments on commit 9f002da

Please sign in to comment.