FIX: Show a correct diff when editing consecutive paragraphs (#8177)

This commit is contained in:
Nacho Caballero
2019-10-11 09:50:37 +02:00
committed by Régis Hanol
parent 694a5bf229
commit 7d2f5240d9
4 changed files with 113 additions and 1 deletions

View File

@ -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