Skip to content

empty line after jldoctest invocation causes errors #2679

@ajinkya-k

Description

@ajinkya-k

I noticed in a recent PR review that an empty line after ```jldoctest causes issues.

```jldoctest

julia> do something here 
```

will cause an error but removing the newline fixes it:

```jldoctest
julia> do something here 
```

Here are two live examples:
https://github.com/JuliaStats/GLM.jl/actions/runs/14439279742/job/40485771112?pr=487#step:5:318

https://github.com/JuliaStats/GLM.jl/actions/runs/14439279742/job/40485771112?pr=487#step:5:391

I could reproduce these errors on my local machine, and can confirm that removing the new line indeed fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions