From 308fb1037068e0a9d11cd8d129642f576b7ed745 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Mon, 9 Sep 2024 14:09:38 +0200 Subject: [PATCH] Update Dialog UI: Fix text snippet The text snippet in the Update Window was bugged (because of the # in a link) --- addons/dialogic/Editor/Common/update_install_window.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/dialogic/Editor/Common/update_install_window.gd b/addons/dialogic/Editor/Common/update_install_window.gd index f018287e8..0d5a49809 100644 --- a/addons/dialogic/Editor/Common/update_install_window.gd +++ b/addons/dialogic/Editor/Common/update_install_window.gd @@ -55,7 +55,7 @@ func load_info(info:Dictionary, update_type:int) -> void: %Install.disabled = true %UpdateName.text = info.name - %Content.text = markdown_to_bbcode('#'+info.body.get_slice('#', 1)).strip_edges() + %Content.text = markdown_to_bbcode(info.body).get_slice("\n[font_size", 0).strip_edges() %ShortInfo.text = "Published on "+info.published_at.substr(0, info.published_at.find('T'))+" by "+info.author.login if info.has("html_url"): %ReadFull.uri = info.html_url @@ -154,7 +154,7 @@ func markdown_to_bbcode(text:String) -> String: while res: text = text.replace(res.get_string(), '[code][bgcolor='+get_theme_color("box_selection_fill_color", "Editor").to_html()+']'+res.get_string('text').strip_edges()+'[/bgcolor][/code]') res = big_code_regex.search(text) - + return text