Skip to content

Commit

Permalink
updated versions and make italics conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmandlik committed Apr 30, 2024
1 parent 28ee4c6 commit 13b842a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"

[compat]
DataStructures = "0.17, 0.18"
OrderedCollections = "1.3"
julia = "^1.5"
DataStructures = "0.18"
OrderedCollections = "1"
julia = "1.6"

[extras]
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
Expand Down
6 changes: 5 additions & 1 deletion src/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ function _print_current(printer, n, c, e, trav, comments)
if comments
nc = sprint(nodecommshow, n, context=printer.io)
if !isempty(nc)
paddedprint(printer, ' ' * nc, color=:light_black, italic=true)
@static if VERSION v"1.10"
paddedprint(printer, ' ' * nc, color=:light_black, italic=true)
else
paddedprint(printer, ' ' * nc, color=:light_black)
end
end
end
gap = repeat(' ', clamp(length(nr)-1, 0, 2))
Expand Down

0 comments on commit 13b842a

Please sign in to comment.