Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## Version `v0.26.2`

* ![Bugfix][badge-bugfix] Script-type doctests that have an empty output section no longer crash Documenter. ([#1510][github-1510])

* ![Bugfix][badge-bugfix] When checking for authentication keys when deploying, Documenter now more appropriately checks if the environment variables are non-empty, rather than just whether they are defined. ([#1511][github-1511])

## Version `v0.26.1`
Expand Down Expand Up @@ -733,6 +735,7 @@
[github-1493]: https://github.com/JuliaDocs/Documenter.jl/pull/1493
[github-1497]: https://github.com/JuliaDocs/Documenter.jl/pull/1497
[github-1503]: https://github.com/JuliaDocs/Documenter.jl/pull/1503
[github-1510]: https://github.com/JuliaDocs/Documenter.jl/pull/1510
[github-1511]: https://github.com/JuliaDocs/Documenter.jl/pull/1511

[julia-38079]: https://github.com/JuliaLang/julia/issues/38079
Expand Down
2 changes: 1 addition & 1 deletion src/DocTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function eval_script(block, sandbox, meta::Dict, doc::Documents.Document, page)
#
#
# to mark `input`/`output` separation.
input, output = split(block.code, "# output\n", limit = 2)
input, output = split(block.code, r"^# output$"m, limit = 2)
input = rstrip(input, '\n')
output = lstrip(output, '\n')
result = Result(block, input, output, meta[:CurrentFile])
Expand Down
9 changes: 8 additions & 1 deletion test/doctests/src/working.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@ Comments at the start:
# .. should be ignored.
julia> 2 + 2
4
```
```

Empty output:

```jldoctest
nothing
# output
```