|
@@ -311,7 +311,7 @@ func diffUpdateData(oldObj any, newObj any) (*DiffUpdateData, error) {
|
|
case diffmatchpatch.DiffInsert:
|
|
case diffmatchpatch.DiffInsert:
|
|
diffData.Diff += fmt.Sprintf("<ins>%s</ins>", diff.Text)
|
|
diffData.Diff += fmt.Sprintf("<ins>%s</ins>", diff.Text)
|
|
case diffmatchpatch.DiffDelete:
|
|
case diffmatchpatch.DiffDelete:
|
|
- diffData.Diff += fmt.Sprintf("<des>%s</des>", diff.Text)
|
|
|
|
|
|
+ diffData.Diff += fmt.Sprintf("<del>%s</del>", diff.Text)
|
|
case diffmatchpatch.DiffEqual:
|
|
case diffmatchpatch.DiffEqual:
|
|
diffData.Diff += diff.Text
|
|
diffData.Diff += diff.Text
|
|
}
|
|
}
|