Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print composer tables add a line break to the last word with fixed column width #28366

Closed
qgib opened this issue Nov 19, 2018 · 5 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Nov 19, 2018

Author Name: Dan Isaacs (Dan Isaacs)
Original Redmine Issue: 20546
Affected QGIS version: 3.4.1
Redmine category:map_composer/printing


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.

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2018

Author Name: Giovanni Manghi (@gioman)


Does it work as expected in 2.18?


  • status_id was changed from Open to Feedback
  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2018

Author Name: Dan Isaacs (Dan Isaacs)


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.

https://gis.stackexchange.com/questions/251999/attribute-table-width-and-line-breaks?rq=1

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2018

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Nov 20, 2018

Author Name: Dan Isaacs (Dan Isaacs)


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.

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2019

Author Name: Marco Hugentobler (@mhugent)


Applied in changeset a774499.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Feb 7, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant