mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Rails 4 updates
This commit is contained in:
parent
0a7bbb08e1
commit
f99acebdaa
10 changed files with 41 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue