Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Jul 3, 2024
1 parent e350501 commit 3b6ed9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/wysiwyg/src/composer_model/new_lines.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::dom::nodes::dom_node::DomNodeKind;
use crate::dom::nodes::dom_node::DomNodeKind::{
Generic, Link, List, ListItem, Paragraph,
};
use crate::dom::{Dom, DomLocation};
use crate::{ComposerModel, ComposerUpdate, DomNode, UnicodeString};
use crate::dom::nodes::dom_node::DomNodeKind;

impl<S> ComposerModel<S>
where
Expand Down
9 changes: 5 additions & 4 deletions crates/wysiwyg/src/tests/test_paragraphs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,17 @@ fn enter_after_setting_html_with_blockquote_with_a_single_line() {
.set_content_from_html(&utf16("<blockquote>A</blockquote>"))
.unwrap();
model.enter();
assert_eq!(tx(&model), "<blockquote><p>A</p><p>&nbsp;|</p></blockquote>");
assert_eq!(
tx(&model),
"<blockquote><p>A</p><p>&nbsp;|</p></blockquote>"
);
}

#[test]
fn enter_after_setting_html_with_blockquote_containing_formatting() {
let mut model = cm("|");
model
.set_content_from_html(&utf16(
"<blockquote>A<b>test</b></blockquote>",
))
.set_content_from_html(&utf16("<blockquote>A<b>test</b></blockquote>"))
.unwrap();
assert_eq!(tx(&model), "<blockquote>A<b>test|</b></blockquote>");
model.enter();
Expand Down

0 comments on commit 3b6ed9d

Please sign in to comment.