Skip to content

Commit 8eb0a48

Browse files
committed
Ending code blocks with a newline
The code block extraction was not resulting in a newline at the end of each code block. This caused a number of false positive failures. This commit changes code block extraction to end code blocks with a newline.
1 parent 2399863 commit 8eb0a48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/system.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ fn get_code_blocks() -> Vec<CodeBlock> {
548548
// We've reached the end of the code block.
549549
extracting_block = false;
550550

551+
// Get a trailing newline in the code block.
552+
code_block.push(String::new());
553+
551554
// Store the code block information.
552555
code_blocks.push(CodeBlock {
553556
config: ConfigPair {

0 commit comments

Comments
 (0)