mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 627575 - Stylesheet names with non-alphanumeric characters and saved-reports
g_key_file_[gs]et_string parses the string to escape newlines and comments This erroneously does some escaping in the #{symbol name}# guile extended format for symbols. Since we already strip newlines and comments ourselves, we can save and store the string without any additoinal parsing using g_key_file_[gs]et_value. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23499 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5c3f0d3c81
commit
f14bd73ba9
@ -765,7 +765,7 @@ gnc_plugin_page_report_save_page (GncPluginPage *plugin_page,
|
||||
|
||||
key_name = g_strdup_printf(SCHEME_OPTIONS_N, id);
|
||||
text = gnc_scm_strip_comments(scm_text);
|
||||
g_key_file_set_string(key_file, group_name, key_name, text);
|
||||
g_key_file_set_value(key_file, group_name, key_name, text);
|
||||
g_free(text);
|
||||
g_free(key_name);
|
||||
}
|
||||
@ -778,7 +778,7 @@ gnc_plugin_page_report_save_page (GncPluginPage *plugin_page,
|
||||
}
|
||||
|
||||
text = gnc_scm_strip_comments(scm_text);
|
||||
g_key_file_set_string(key_file, group_name, SCHEME_OPTIONS, text);
|
||||
g_key_file_set_value(key_file, group_name, SCHEME_OPTIONS, text);
|
||||
g_free(text);
|
||||
LEAVE(" ");
|
||||
}
|
||||
@ -825,7 +825,7 @@ gnc_plugin_page_report_recreate_page (GtkWidget *window,
|
||||
{
|
||||
if (strncmp(keys[i], SCHEME_OPTIONS, strlen(SCHEME_OPTIONS)) != 0)
|
||||
continue;
|
||||
option_string = g_key_file_get_string(key_file, group_name,
|
||||
option_string = g_key_file_get_value(key_file, group_name,
|
||||
keys[i], &error);
|
||||
if (error)
|
||||
{
|
||||
@ -847,7 +847,7 @@ gnc_plugin_page_report_recreate_page (GtkWidget *window,
|
||||
|
||||
if (final_id == SCM_BOOL_F)
|
||||
{
|
||||
if (strcmp(keys[i], SCHEME_OPTIONS) == 0)
|
||||
if (g_strcmp0(keys[i], SCHEME_OPTIONS) == 0)
|
||||
{
|
||||
final_id = scm_id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user