Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines character is weirdly rendered in layout label item text, breaking expressions #27568

Closed
qgib opened this issue Aug 31, 2018 · 2 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Aug 31, 2018

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.


@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset bb91170.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Sep 4, 2018
@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2018

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Expressions Related to the QGIS expression engine or specific expression functions Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant