File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,10 @@ namespace EmA.CAP {
213213 var base_uri = Uri . parse (" https://" , NONE );
214214 var uri = Uri . parse_relative (base_uri, url, NONE );
215215
216- warn. web = " <a href=\"%s\" >%s </a>" . printf (uri. to_string (), url);
216+ warn. web = " <a href=\"%s\" >%s </a>" . printf (
217+ Markup . escape_text (uri. to_string ()),
218+ Markup . escape_text (url)
219+ );
217220 } catch (Error e) {
218221 warning (" Failed to parse URL: %s " , e. message);
219222 warn. web = url;
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ public class EmA.WarningPage : Adw.NavigationPage {
134134 var content_label = new Gtk .Label (null ) {
135135 xalign = 0 ,
136136 wrap = true ,
137+ wrap_mode = WORD_CHAR ,
137138 use_markup = true ,
138139 };
139140 content_label. add_css_class (" dimmed" );
You can’t perform that action at this time.
0 commit comments