We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bbafc5 commit 7442ce6Copy full SHA for 7442ce6
core/src/state/notebook/consume/note.rs
@@ -127,8 +127,10 @@ pub async fn update_content(
127
content: String,
128
) -> Result<NotebookTransition> {
129
let current = db.fetch_note_content(note_id.clone()).await?;
130
- if current != content {
131
- db.update_note_content(note_id.clone(), content).await?;
+ let content = content.trim_end();
+ if current.trim_end() != content {
132
+ db.update_note_content(note_id.clone(), content.to_owned())
133
+ .await?;
134
}
135
136
Ok(NotebookTransition::UpdateNoteContent(note_id))
0 commit comments