In QGIS 3.34 I used the wordwrap function to split a long text into two lines. But how can I undo it? So that I have the text on one line again?
-
What expression did you use to wrap it?Bera– Bera2025-02-06 10:21:12 +00:00Commented Feb 6 at 10:21
-
For the demonstration I used the command wordwrap('I want remove wordwrap format',20)dysano– dysano2025-02-06 15:01:51 +00:00Commented Feb 6 at 15:01
Add a comment
|
1 Answer
The new line charter inserted by wordwrap is \n, so you can replace it with a space: replace(myfield,'\n',' ')
-
1Keep in mind that if there were line breaks in the text before using
wordwrapyou will replace them too. So is not aundofunction as @dysano asks.Comrade Che– Comrade Che2025-02-06 11:42:23 +00:00Commented Feb 6 at 11:42
