Bug report #12750
Labelling: replace a space with return conflicts with Return within a string
|Affected QGIS version:||2.8.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20849|
Return within a string and the option to replace a character (typically space) with return do not interact nicely (the return within a string not being used).
- if the return and the wrap character are in the same string, the return is not taken into account, it becomes a simple space;
- if the wrap character appears before the return, even in a separate string, the return is not taken into account, it becomes a simple space.
- Only returns written before a wrap character, in a separate string, are applied.
[labeling] Fix setting a wrap character conflicts with newlines
in label text (fix #12750)