1

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?

enter image description here

2
  • What expression did you use to wrap it? Commented Feb 6 at 10:21
  • For the demonstration I used the command wordwrap('I want remove wordwrap format',20) Commented Feb 6 at 15:01

1 Answer 1

0

The new line charter inserted by wordwrap is \n, so you can replace it with a space: replace(myfield,'\n',' ')

1
  • 1
    Keep in mind that if there were line breaks in the text before using wordwrap you will replace them too. So is not a undo function as @dysano asks. Commented Feb 6 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.