Bug report #20546
Print composer tables add a line break to the last word with fixed column width
|Affected QGIS version:||3.4.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||28366|
Tables with fixed column widths and 'wrap text' options have the last word placed on a new line consistently. This rather makes the wrap text option redundant as it cannot be used in any professional report.
Don't add extra linebreak in print composer tables
Check if remaining text is short enough to go in one line. Fixes #20546
#2 Updated by Dan Isaacs over 2 years ago
Giovanni Manghi wrote:
Does it work as expected in 2.18?
I don't actually have a copy of 2.18 any more, but I have just found this old Stack Exchange Question, so it seems to have been a problem back in August 2017.
#4 Updated by Dan Isaacs over 2 years ago
Just for anyone coming across this dealing with the same problem, a rather messy workaround is to always make sure long text is suffixed with a double space. Layout interprets the second space as a new word and puts it on it's own line. You get a line break at the end of each section, but it's better than a mysterious trailing word.