Skip to content

Commit

Permalink
Allow with_unicode(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jan 30, 2024
1 parent f35fc22 commit e7e0a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrettyPrinting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1397,8 +1397,8 @@ function is_unicode_allowed()
return @load_preference("unicode", default = false)
end

function with_unicode(f::Function)
old_allow_unicode = allow_unicode(true)
function with_unicode(f::Function, flag=true)
old_allow_unicode = allow_unicode(flag)
try
f()
finally
Expand Down

0 comments on commit e7e0a8d

Please sign in to comment.