@@ -29,27 +29,27 @@ if (Sys.getenv('NOT_CRAN') == 'true') local({
29
29
# footnotes are parsed and moved correctly
30
30
# # deleted from last section
31
31
if (any(readLines(" rmd/subsection-footnotes-2.html" ) == ' <div class="footnotes">' )) {
32
- stop(' Failed to parse and delete the footnotes in parse_footnotes .Rmd' )
32
+ stop(' Failed to parse and delete the footnotes in parse-footnotes .Rmd' )
33
33
}
34
34
# # footnote one is moved to first section
35
35
if (! any(readLines(' rmd/test-footnote.html' ) == ' <div class="footnotes">' ) ||
36
36
! any(grepl(' id="fn1"' , readLines(' rmd/test-footnote.html' )))) {
37
- stop(' Failed to move the footnotes back to subsection 1 in parse_footnotes .Rmd' )
37
+ stop(' Failed to move the footnotes back to subsection 1 in parse-footnotes .Rmd' )
38
38
}
39
39
# # footnote two is moved to second section
40
40
if (! any(readLines(' rmd/subsection-footnotes-1.html' ) == ' <div class="footnotes">' ) ||
41
41
! any(grepl(' id="fn2"' , readLines(' rmd/subsection-footnotes-1.html' )))) {
42
- stop(' Failed to move the footnotes back to subsection 1 in parse_footnotes .Rmd' )
42
+ stop(' Failed to move the footnotes back to subsection 1 in parse-footnotes .Rmd' )
43
43
}
44
44
# multiline footnote is also moved
45
45
if (! any(readLines(' rmd/subsection-footnotes-1.html' ) == ' <div class="footnotes">' ) ||
46
46
! any(grepl(' id="fn3"' , readLines(' rmd/subsection-footnotes-1.html' )))) {
47
- stop(' Failed to move the footnotes back to subsection 1 in parse_footnotes .Rmd' )
47
+ stop(' Failed to move the footnotes back to subsection 1 in parse-footnotes .Rmd' )
48
48
}
49
49
50
50
# number sections now works in markdown_document2
51
51
if (! any(readLines(" rmd/number-sections.md" ) == " 1.1 subsection 1" ) ||
52
52
! any(grepl(" <a href=.*>2.1</a>" , readLines(" rmd/number-sections.md" )))) {
53
- stop(" Something wrong in number_sections .Rmd" )
53
+ stop(" Something wrong in number-sections .Rmd" )
54
54
}
55
55
})
0 commit comments