Skip to content

Commit

Permalink
Update Dialog UI: Fix text snippet
Browse files Browse the repository at this point in the history
The text snippet in the Update Window was bugged (because of the # in a link)
  • Loading branch information
Jowan-Spooner committed Sep 9, 2024
1 parent e724a97 commit 308fb10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/dialogic/Editor/Common/update_install_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 308fb10

Please sign in to comment.