9

I want to add a line break to a long text line in the QGIS attribute table. I made a small excel example to visualize it:

enter image description here

enter image description here

Is this possible somehow? I use geopackage as datasource.

5
  • What kind of data source are you using ?
    – Snaileater
    Jul 1 '19 at 8:52
  • I use geopackage
    – gHupf
    Jul 1 '19 at 9:01
  • If you insert spaces, the text will automatically break into lines.
    – csk
    Jul 2 '19 at 20:14
  • Also try turning on the text edit widget option "multi line" (layer properties > attributes form).
    – csk
    Jul 2 '19 at 20:16
  • I have spaces inserted, but the text is not broken into lines. Also activating multiline doesn't work. It just displays the text broken into lines if I click on it in edit mode, instead of displaying it in a single line. If I pull a whole row in the attribute table bigger, the text lines break. But since I have several hundreds of rows this is no option. Any way to automatically choose the line height for every line?
    – gHupf
    Jul 3 '19 at 8:29
2

Illustrating a solution to have multiple lines for the value in text field of attribute table:

enter image description here

1
  • 1
    As I mentioned in the comments of my question, this works only if I increase the size of a line manually. The lines are not automatically broken if I open an attribute table and this is what I am looking for.
    – gHupf
    Oct 15 '20 at 10:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.