From ace3342c37343c8c955df1276d72e96f3af24c96 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 3 Feb 2025 10:21:35 +0600 Subject: [PATCH] fixed < and > symbols saving --- source/libublsettingsui-gtk3-save.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/libublsettingsui-gtk3-save.c b/source/libublsettingsui-gtk3-save.c index 45382a6..27a8fcc 100644 --- a/source/libublsettingsui-gtk3-save.c +++ b/source/libublsettingsui-gtk3-save.c @@ -413,6 +413,10 @@ void yon_save_window_loaded_config_init(template_saving_window *window, struct l GtkTreeIter iter; if (status==0||status==-2) status = 0; else status=1; + if (strstr(current->data,">")) current->data = yon_char_replace(current->data,">","<"); + if (strstr(current->data,"<")) current->data = yon_char_replace(current->data,"<",">"); + if (strstr(dict->data,">")) dict->data = yon_char_replace(dict->data,">","<"); + if (strstr(dict->data,"<")) dict->data = yon_char_replace(dict->data,"<",">"); char *compare_string = yon_char_unite("",(char*)dict->data,"\n",(char*)current->data,NULL); gtk_list_store_append(window->list,&iter); gtk_list_store_set(window->list,&iter,0,status,1,current->key,2,(char*)dict->data,3,(char*)current->data,4,compare_string,6,1,7,yon_config_get_section_for_key(current->key),-1);