@@ -1080,7 +1080,7 @@ impl Document {
10801080
10811081impl Default for Document {
10821082 fn default() -> Self {
1083− let text = Rope::from("");
1083+ let text = Rope::from(DEFAULT_LINE_ENDING.as_str());
10841084 Self::from(text, None)
10851085 }
10861086}
@@ -1205,7 +1205,10 @@ mod test {
12051205
12061206 #[test]
12071207 fn test_line_ending() {
1208− assert_eq!(Document::default().text().to_string(), "");
1208+ assert_eq!(
1209+ Document::default().text().to_string(),
1210+ DEFAULT_LINE_ENDING.as_str()
1211+ );
12091212 }
12101213
12111214 macro_rules! test_decode {