Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Jul 4, 2021
1 parent cc0f26a commit 88bb6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Expanders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ function Selectors.runner(::Type{ExampleBlocks}, x, page, doc)

# "parse" keyword arguments to example
continued = false
ansicolor = get(stdout, :color, false)::Bool
ansicolor = Base.JLOptions().color != 2 # disable if --color=no
if kwargs !== nothing
continued = occursin(r"\bcontinued\s*=\s*true\b", kwargs)
matched = match(r"\bansicolor\s*=\s*(true|false)\b", kwargs)
Expand Down Expand Up @@ -614,7 +614,7 @@ function Selectors.runner(::Type{REPLBlocks}, x, page, doc)
mod = Utilities.get_sandbox_module!(page.globals.meta, "atexample", name)

# "parse" keyword arguments to repl
ansicolor = get(stdout, :color, false)::Bool
ansicolor = Base.JLOptions().color != 2 # disable if --color=no
if kwargs !== nothing
matched = match(r"\bansicolor\s*=\s*(true|false)\b", kwargs)
if matched !== nothing
Expand Down

0 comments on commit 88bb6f2

Please sign in to comment.