-
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
Enhance the excel output to get the formatting option of text-indent (#1666) #1667
Enhance the excel output to get the formatting option of text-indent (#1666) #1667
Conversation
I have added the test results, screens and original test reports at the issue-ticket. The idea is to sum the margin & padding and calculate it to the indent-factor. To sum the margin & padding the values must be synced to the same value. I decieded to use "mm" as default unit, The main changes are given at the CellContentHandler within the new method "overlayBirtCellStyleSpacing()"and at the StyleManager "createStyle()". Hint: |
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.
LGTM
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.
I see the same typo at least two times in README.md: "teh" instead of "the".
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.
I'm not sure if the default value of True for ExcelEmitter.DisplayTextIndent
is a good idea.
It will probably change (aka break) the layout of existing reports.
IMHO the default should be to not use indentation.
Furthermore, I'm not sure if using the margin of the element inside a cell is a good idea.
It is hard to predict for a developer what should happen if there are more than one elements inside a cell.
Instead, only the padding of the cell should be used IMHO.
I will remove the typo and I will double check the behavior of multiple content. But from my side it would be good to have the indention active because I would expect the indent by default. I will check the padding of the cell but I will have also an indent if the cell has "no padding" but the labels / text-elements would have a margin & padding. Then I wants to get an indent. |
This may be a silly question, but: What should happen if the layout is more complex, e.g. a Grid Item or Table Item inside a Cell, possibly at 3 or 4 levels? Personally, I don't think it is possible to correctly calculate the spacing in such more general cases. |
The indent will be calculated only on label / text-element level and will take a look to the parent cell. And in such special cases the ExcelEmitter has a default behavior because he doesn't allow to nest to many tables in a cell. |
question 1: Can the user-property defined at top-level / report-level?
question 2: What will be happend if 2 (more) elements will be added in a cell and both element have a different margin & padding?
question 3: What will be happend if a cell contains further inner tables/grids?
Added user property for indent mode |
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.
The text in ..../uk/co/spudsoft/birt/emitters/excel/README.md could use some polish, but this can be done later, and should preferably be done by a native English speaker.
Thanks, Thomas! |
Enhance the excel output to get the formatting option of text-indent (#1666)