FIX: Use cooked suggestion when generating a diff (#13)
This commit is contained in:
parent
5571babb63
commit
75aa595105
|
@ -51,7 +51,7 @@ module DiscourseAi
|
||||||
cooked_text = PrettyText.cook(text)
|
cooked_text = PrettyText.cook(text)
|
||||||
cooked_suggestion = PrettyText.cook(suggestion)
|
cooked_suggestion = PrettyText.cook(suggestion)
|
||||||
|
|
||||||
DiscourseDiff.new(cooked_text, suggestion).inline_html
|
DiscourseDiff.new(cooked_text, cooked_suggestion).inline_html
|
||||||
end
|
end
|
||||||
|
|
||||||
def parse_content(type, content)
|
def parse_content(type, content)
|
||||||
|
|
Loading…
Reference in New Issue