Bug report #20606

'\n' button in function editor generates invalid code

Added by Patrick Dunford over 5 years ago. Updated over 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Field calculator
Affected QGIS version:3.4.1 Regression?:No
Operating System:Debian 9.6 / KDE Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28426

Description

In the function editor for captions you have a button clearly labelled '\n' but when you press it, it outputs '\&n'. The difference is the former is acceptable and the latter is invalid as far as the function editor is concerned.

History

#1 Updated by Patrick Dunford over 5 years ago

Sorry, correction. It doesn't create invalid code. The preview outputs a different result, like the literal ?n instead of a newline.

Also available in: Atom PDF