From 75aa5951054e16cedf85c1ab0715b67886fa70dd Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Thu, 16 Mar 2023 11:09:28 -0300 Subject: [PATCH] FIX: Use cooked suggestion when generating a diff (#13) --- lib/modules/ai_helper/open_ai_prompt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/ai_helper/open_ai_prompt.rb b/lib/modules/ai_helper/open_ai_prompt.rb index 2f27d54e..dddec2c9 100644 --- a/lib/modules/ai_helper/open_ai_prompt.rb +++ b/lib/modules/ai_helper/open_ai_prompt.rb @@ -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)