New lines character is weirdly rendered in layout label item text, breaking expressions #27568
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Expressions
Related to the QGIS expression engine or specific expression functions
High Priority
Regression
Something which used to work, but doesn't anymore
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 19743
Affected QGIS version: 3.3(master)
Redmine category:expressions
Open a layout and add a label item
Using the "Insert expression" button, I wrote a long multiline expression, to improve readability.
Code looks valid and I applied.
Later on, I decided to add more details to the expression, hence selected the whole content of the label item's "main properties" frame, including the brackets and click "insert expression"
In the new dialog, the previously successful expression is marked as invalid and some weird characters are added to the command.
Give a look to the attached image showing the code I first wrote, and then how it's rendered at reopening the dialog.
It looks like the new line character is not handled in the code.
The text was updated successfully, but these errors were encountered: