Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctest(Module; fix=true) produces weird results #2303

Closed
lkastner opened this issue Oct 16, 2023 · 0 comments · Fixed by #2378
Closed

doctest(Module; fix=true) produces weird results #2303

lkastner opened this issue Oct 16, 2023 · 0 comments · Fixed by #2378

Comments

@lkastner
Copy link
Contributor

lkastner commented Oct 16, 2023

I made a minimal working example. My doctest looks similar to:

``` jldoctest label
julia> a = ("a", "b", "c");                       

julia> a

```

(I left the output empty on purpose to trigger the error.)
Running Documenter.jl to fix the doctest gives:

```jldoctest label
julia
("a", "b", "c")> a = ("a", "b", "c");

julia> a

```

It seems like some regex is replacing the first appearance of a with the command + correct output, instead of the actual command + (wrong) output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants