Skip to content

Commit 97f7c26

Browse files
committed
Update escape_string to match the 1.12 signature
This is the counterpart to JuliaLang/julia@0f51a6375f2c.
1 parent df0633e commit 97f7c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ Base.print(io::AnnotatedIOBuffer, s::Union{<:AnnotatedString, SubString{<:Annota
267267
(write(io, s); nothing)
268268

269269
Base.escape_string(io::IO, s::Union{<:AnnotatedString, SubString{<:AnnotatedString}},
270-
esc = ""; keep = ()) =
271-
(_ansi_writer(io, s, (io, s) -> escape_string(io, s, esc; keep)); nothing)
270+
esc = ""; keep = (), ascii::Bool=false, fullhex::Bool=false) =
271+
(_ansi_writer(io, s, (io, s) -> escape_string(io, s, esc; keep, ascii, fullhex)); nothing)
272272

273273
function Base.write(io::IO, c::AnnotatedChar)
274274
if get(io, :color, false) == true

0 commit comments

Comments
 (0)