FIX: Use cooked suggestion when generating a diff (#13)

This commit is contained in:
Roman Rizzi 2023-03-16 11:09:28 -03:00 committed by GitHub
parent 5571babb63
commit 75aa595105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module DiscourseAi
cooked_text = PrettyText.cook(text)
cooked_suggestion = PrettyText.cook(suggestion)
DiscourseDiff.new(cooked_text, suggestion).inline_html
DiscourseDiff.new(cooked_text, cooked_suggestion).inline_html
end
def parse_content(type, content)