File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import MultiDocumenter: DocumenterTools
3
3
4
4
FIXTURES = joinpath (@__DIR__ , " fixtures" )
5
5
6
+ normalize_newlines (s:: AbstractString ) = replace (s, " \r\n " => " \n " )
7
+
6
8
@testset " walkdocs" begin
7
9
let fileinfos = DocumenterTools. FileInfo[]
8
10
rs = DocumenterTools. walkdocs (joinpath (FIXTURES, " pre" )) do fileinfo
123
125
canonical = " https://example.org/this-is-test" ,
124
126
)
125
127
DocumenterTools. walkdocs (joinpath (FIXTURES, " post" )) do fileinfo
126
- post = read (fileinfo. fullpath, String)
127
- changed = read (joinpath (out, fileinfo. relpath), String)
128
+ post = normalize_newlines ( read (fileinfo. fullpath, String) )
129
+ changed = normalize_newlines ( read (joinpath (out, fileinfo. relpath), String) )
128
130
if changed != post
129
131
@error " update_canonical_links: change and post not matching" out fileinfo
130
132
end
You can’t perform that action at this time.
0 commit comments