Newline handling in thumbnail pattern settings
Is there an existing issue for this?
- [x] I checked and did not find my issue in the already reported ones
Describe the bug
Darktable seems to honor newlines in the two thumbnail pattern settings ("pattern for the thumbnail extended overlay text" and "pattern for the thumnail tooltip (empty to disable)" in the "lightable" tab of the settings), but then only saves the first line so the patterns do not survive a restart.
Ideally, Darktable would preprocess the setting, save newlines as $(NL) (if need be), and restore $(NL) to the os-appropriate newline characters when loading the settings.
In any case, it should behave consistently and either limit input to one line or save/restore multi-line patterns correctly.
Affected version: Darktable 5.2.1 on linux (flatpak)
Steps to reproduce
- go to the "lightable" tab in the settings windows
- enter a mlti-line (with actual newlines, not
$(NL)) in either of the last two fields - verify that the pattern is applied
- close and restart Darktable
- verify that the pattern was not saved correctly
Expected behavior
No response
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.2.1
What OS are you using?
Linux
What is the version of your OS?
tumbleweed (flatpak)
Describe your system
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.