mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 04:47:26 +08:00
Rails 4 updates
This commit is contained in:
@ -13,7 +13,7 @@ class DiffEngine
|
||||
#
|
||||
# returns: html containing decorations indicating the changes
|
||||
def self.html_diff(html_before, html_after)
|
||||
Diffy::Diff.new(html_before, html_after).to_s(:html)
|
||||
Diffy::Diff.new(html_before, html_after, {allow_empty_diff: false}).to_s(:html)
|
||||
end
|
||||
|
||||
# same as html diff, except that it operates on markdown
|
||||
|
Reference in New Issue
Block a user