Skip to content

Commit

Permalink
Fix debug logging for doctest filtering (#2276)
Browse files Browse the repository at this point in the history
While debugging a doctest filter with `ENV["JULIA_DEBUG"] = "Documenter"`
I noticed that the "Evaluated output (filtered)" was clearly not derived from the "Evaluated output". I think this here is the cause.
  • Loading branch information
fingolfin authored Sep 20, 2023
1 parent 87ad0c8 commit e50da5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doctests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function checkresult(sandbox::Module, result::Result, meta::Dict, doc::Documente
filteredstr, filteredoutput = filter_doctests(filters, (str, output))
@debug debug_report(
result=result, filters = filters, expected_filtered = filteredoutput,
evaluated = rstrip(str), evaluated_filtered = filteredoutput
evaluated = rstrip(str), evaluated_filtered = filteredstr
)
if filteredstr != filteredoutput
if doc.user.doctest === :fix
Expand Down

0 comments on commit e50da5d

Please sign in to comment.