mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:41:15 +08:00
FIX: Show a correct diff when editing consecutive paragraphs (#8177)
This commit is contained in:

committed by
Régis Hanol

parent
694a5bf229
commit
7d2f5240d9
@ -12,7 +12,7 @@ class DiscourseDiff
|
||||
before_markdown = tokenize_line(CGI::escapeHTML(@before))
|
||||
after_markdown = tokenize_line(CGI::escapeHTML(@after))
|
||||
|
||||
@block_by_block_diff = ONPDiff.new(before_html, after_html).diff
|
||||
@block_by_block_diff = ONPDiff.new(before_html, after_html).paragraph_diff
|
||||
@line_by_line_diff = ONPDiff.new(before_markdown, after_markdown).short_diff
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user