Describe the bug
When selecting a style that contains an ampersand (&) in its description field the information shown will be empty and the following message will appear in the terminal:
(darktable:18847): Gtk-WARNING **: 11:31:14.179: Failed to set text 'Agfa (Black&White): Agfapan 400
channel mixer (on)' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity ? escape ampersand as &
There is, however, no lone & in the description field. It is coded the way it should be:
<info>
<name>Black&White|Agfa|Agfapan 400</name>
<description>Agfa (Black&White): Agfapan 400</description>
</info>
This only happens in darkroom view and only with the description field. No problems whatsoever in lighttable view and with the & in the name field.
To Reproduce
Create or change an existing style and use & in the description field.
Expected behavior
The information to be shown as is done when in lighttable view.
Platform (please complete the following information):
Additional context
It seems that problem with reading description is not limited to &. I've managed to reproduce it using <, however > & " do not produce the error mentioned.
I did not check those......
There are only 5 characters that need to be escaped when using xml. There is still one missing from the above posts: ' This one does not produce the issue.
Here are all 5 and the result when parsing them:
_&_ error
' OK
> OK
_<_ error
" OK
This is now fixed in master and 3.0.1. Thanks for reporting.
Most helpful comment
This is now fixed in master and 3.0.1. Thanks for reporting.