diff --git a/components/content/src/page.rs b/components/content/src/page.rs index 041ab981d..9b5e03a83 100644 --- a/components/content/src/page.rs +++ b/components/content/src/page.rs @@ -529,7 +529,7 @@ Hello world &HashMap::new(), ) .unwrap(); - assert_eq!(page.summary, Some("

Hello world

\n".to_string())); + assert_eq!(page.summary, Some("

Hello world

".to_string())); } #[test] @@ -565,7 +565,7 @@ And here's another. [^3] .unwrap(); assert_eq!( page.summary, - Some("

This page use 1.5 and has footnotes, here\'s one.

\n

Here's another.

\n".to_string()) + Some("

This page use 1.5 and has footnotes, here\'s one.

\n

Here's another.

".to_string()) ); }