Skip to content

Commit f109a8e

Browse files
committed
Update prettytables.jl
1 parent 48c6a49 commit f109a8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/abstractdataset/prettytables.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ function _pretty_tables_highlighter_func(data, i::Integer, j::Integer)
2222
end
2323
end
2424
end
25-
26-
const _PRETTY_TABLES_HIGHLIGHTER = Highlighter(_pretty_tables_highlighter_func,
25+
if isdefined(PrettyTables, :Highlighter)
26+
const _PRETTY_TABLES_HIGHLIGHTER = Highlighter(_pretty_tables_highlighter_func,
27+
Crayon(foreground = :dark_gray))
28+
else
29+
const _PRETTY_TABLES_HIGHLIGHTER = TextHighlighter(_pretty_tables_highlighter_func,
2730
Crayon(foreground = :dark_gray))
31+
end
2832

2933
# Default DataFrames formatter for text backend.
3034
#

0 commit comments

Comments
 (0)