Skip to content

Commit

Permalink
Line wrapping draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Mar 11, 2024
1 parent 9b73f49 commit 03ad8cc
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 58 deletions.
16 changes: 14 additions & 2 deletions backend-local-server/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,27 @@ impl DataInterface for FakeData {
// "deleted_file" => [Some("deleted"), None],
// "added file" => [None, Some("added")]
// };
#[rustfmt::skip]
let two_sides_map = vec![
(
"edited_file",
[
FileEntry::Text(
"First\nThird\nFourth\nFourthAndAHalf\n\nFifth\nSixth\n----\none two"
"Long line, a long line, a quite long line. Long line, a long line, a \
quite long line. Long line, a long line, a quite long \
line.\nFirst\nThird\nFourth\nFourthAndAHalf\nSame\nSame\nSame\nSame\
\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\
\nSame\nSame\nSame\nSame\nSame\nFifth\nSixth\n----\none two"
.to_string(),
),
FileEntry::Text(
"Long line, a long line, a quite long line. Long line, a long line, a \
quite long line. Something new. Long line, a long line, a quite long \
line.\nFirst\nSecond\nThird\nSame\nSame\nSame\nSame\nSame\nSame\nSame\
\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\nSame\
\nSame\nSame\nFifth\nSixth\n----\none\n"
.to_string(),
),
FileEntry::Text("First\nSecond\nThird\nFifth\nSixth\n----\none\n".to_string()),
],
),
(
Expand Down
Loading

0 comments on commit 03ad8cc

Please sign in to comment.