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

PDF reports: do not truncate, wrap instead #7331

Open
ArnY opened this issue Mar 2, 2015 · 3 comments
Open

PDF reports: do not truncate, wrap instead #7331

ArnY opened this issue Mar 2, 2015 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@ArnY
Copy link
Contributor

ArnY commented Mar 2, 2015

In PDF reports, lines in report tables should never be truncated but wrapped instead.

One of my users got the following report by mail:

github-truncated

By using MultiCell instead of Cell in the PDF renderer the user would have gotten this instead:

github-wrapped

Commit 9a32433 does the trick but needs testing...

@mattab
Copy link
Member

mattab commented Mar 2, 2015

Hi @ArnY thanks for the suggestion. I'm not sure whether we want to make this change. Instead maybe it would be better to make the table smart and display only the text that is different for each row. For example here each row starts with "Universite de Nantes - Les journees scientifiques - XYZ" - Piwik could detect that and replace these labels with " ... XYZ " (replace the repeated text with ...)

@ArnY
Copy link
Contributor Author

ArnY commented Mar 2, 2015

Hrm, indeed, that could be another way, but how would you manage to display the first line? Even if the prefix can be substituted by '...' after the first line, it should sitll be be displayed on the first one which is also too long.

@ArnY
Copy link
Contributor Author

ArnY commented Mar 3, 2015

That wouldn't work either if all titles are longer than 55 characters without any common prefix or with a prefix (for example "Université de Nantes") but still longer than 55 chars.

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Apr 8, 2015
@mattab mattab added this to the Mid term milestone Apr 8, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants