-
Notifications
You must be signed in to change notification settings - Fork 394
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
Change the default value for overflow to visible as CSS specs say and… #1262
Change the default value for overflow to visible as CSS specs say and… #1262
Conversation
I have no idea why the CI build failed. The code seems to work. |
The maven log is clear. Please look at BaseMessageFileTest.testDuplicateMessages and check how your code could influence it. Failures: |
Ah, ok, that explains it. |
Please rebase your changes on the latest in master. |
… allow specifying overflow in the style editor.
bb6a5a6
to
dc847b1
Compare
@wimjongman @speckyspooky @claesrosell @ruspl-afed What do you think, can I squash and merge this? |
Don't you think changing the default would break existing reports? I agree with you, but we should probably leave the default as it was in that case. It is up to you to assess the risks for existing users. |
That's why I have asked for opinions in #1261. From my personal experience and from my my colleagues experience after > 13 years of developing BIRT reports, I can say that the user expectation is to never automatically cut text because that loses information and can be misleading. In rare cases, there were exceptions: These were always for generating labels, when available space was precious and descriptive texts sometimes had to be cropped. Reports in English or Asian languages probably never face this issue at all, because the words are just shorter. BTW newer BIRT releases contained breaking changes in the past several times, most of the times due to newly introduced bugs which we had to work around. As an example, the value of 0 for page-break interval meant "infinite" before 4.3.0 and was forbidden in 4.3.0, so we had to change the setting to 9999 in all our reports. I also thought of keeping the old (wrong) default "hidden" and make it overridable somehow, to keep backward compatibility. The other way round, the only workaround I found to make the existing DOCX emitter not crop text, was to create a generic script in the I also don't see how setting this as a render option (see point 3 in #1261) should work reasonable. Another option which in fact should be possible would be to implement point 4 in #1261: Increment the version number in the design files. To summarize:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok you convinced me. Thanks for the patch!
I'm trying to revive many of the tests, including org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitterTest which fails because the expected results are different. But more of a concern is that the new result does not even properly start with a document tag as emitted by openRootTag. Here you can see the new call to the new org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter.addCellDiagonalSpecial() method is before the call to openRootTag(): Lines 716 to 752 in 15d8a1e
That can't be okay.... I'm going to try to fix this as part of enabling more test for this: |
@merks Hmm, I think this the wrong PR for this. If the issue is caused by addCellDiagonalSpecial called in the wrong place, you'd better contact @speckyspooky. |
I did. I think it’s okay now. The test passes with well-formed html 5. |
… allow specifying overflow in the style editor.