diff --git a/src/preprocess.rs b/src/preprocess.rs
index 90d1e7f..d02ffa4 100644
--- a/src/preprocess.rs
+++ b/src/preprocess.rs
@@ -128,7 +128,7 @@ pub fn get_render_tasks<'a>(
}
}
- if raw_content.len() - 1 > checkpoint {
+ if raw_content.len() > checkpoint {
rendering.push(Render::Text(&raw_content[checkpoint..raw_content.len()]));
}
rendering
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index b45f311..725915e 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -71,7 +71,7 @@ fn test_dollar_escaping_inside_expr() {
let raw_content = r"We randomly assign: $r \xleftarrow{\$} G $.";
let (stylesheet_header, rendered_content) = test_render(raw_content);
let expected_output = stylesheet_header +
- "We randomly assign: r$\u{200b}G";
+ "We randomly assign: r$\u{200b}G.";
debug_assert_eq!(expected_output, rendered_content);
}