jabref
jabref copied to clipboard
Regex replace behave differently in entry preview and custom export
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
No response
Checked with the latest development build
- [X] I made a backup of my libraries before testing the latest development version.
- [X] I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
- Define a "Customized entry preview" like this: "\format[Replace("é,e")]{\author}"
- Test it with an entry having "Testé" as author. The preview show "Teste" as expected. The accent is replaced with the non accented character
- Create a new "Custom export formats" with the same formating saved in the .layout file: "\format[Replace("é,e")]{\author}"
- Export the entry having "Testé" as author. The resulting exported file contains "Testé" as if nothing had happend. I guess accent are converted to some encoding BEFORE being processed by the formating and the replace function can't find them anymore.
Appendix
No response