Skip to content

Commit

Permalink
Improve doctest output labelling (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored May 27, 2019
1 parent ea7975c commit 6e35c14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* ![Enhancement][badge-enhancement] The logo image in the HTML output will now always point to the first page in the navigation menu (as opposed to `index.html`, which may or may not exist). When using pretty URLs, the `index.html` part now omitted from the logo link URL. ([#1005][github-1005])

* ![Enhancement][badge-enhancement] Minor changes to how doctesting errors are printed. ([#1028][github-1028])

## Version `v0.22.4`

* ![Bugfix][badge-bugfix] Documenter no longer crashes if the build includes doctests from docstrings that are defined in files that do not exist on the file system (e.g. if a Julia Base docstring is included when running a non-source Julia build). ([#1002][github-1002])
Expand Down Expand Up @@ -323,6 +325,7 @@
[github-1009]: https://github.com/JuliaDocs/Documenter.jl/pull/1009
[github-1014]: https://github.com/JuliaDocs/Documenter.jl/pull/1014
[github-1015]: https://github.com/JuliaDocs/Documenter.jl/pull/1015
[github-1028]: https://github.com/JuliaDocs/Documenter.jl/pull/1028

[documenterlatex]: https://github.com/JuliaDocs/DocumenterLaTeX.jl
[documentermarkdown]: https://github.com/JuliaDocs/DocumenterMarkdown.jl
Expand Down
6 changes: 3 additions & 3 deletions src/DocTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ function report(result::Result, str, doc::Documents.Document)
$(result.input)
Output:
Evaluated output:
$(result.output)
$(rstrip(str))
Expected output:
$(rstrip(str))
$(result.output)
""", diff)
end
Expand Down

0 comments on commit 6e35c14

Please sign in to comment.