! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
New line character not saved in date/time format across restarts
Status:
RESOLVED: MOVED
Product:
Xfce4-datetime-plugin
Component:
General

Comments

Description Ruslan 2020-04-01 12:28:22 CEST
I'm using XFCE4 panel's Clock plugin with the following format: "   %A       %R\n%_d %B %Y г.", where "\n" is the LF character (0x0A). It works fine, meaning that the date/time format is indeed split into two lines as I wanted. But after restarting the panel this LF character gets transformed into SPACE character (0x20).

The problem seems to come from the fact that in ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml the relevant property "digital-format" is always saved literally, with a hard newline, which on deserialization gets normalized into space. If I change this newline to 
, it gets loaded correctly, but is then overwritten by the wrong string.
Comment 1 Git Bot editbugs 2020-05-23 01:25:42 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-datetime-plugin/-/issues/31.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16622

Reported by:
Ruslan
Reported on: 2020-04-01
Last modified on: 2020-05-23

People

Assignee:
Xfce-Goodies Maintainers
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information