Closed speckyspooky closed 1 week ago
The PR #1667 containse the according changes to get the new option of the text-indent for excel. The change includes also the documenten user property "ExcelEmitter.DisplayTextIndent" to disable the indent handling and restore the default behavior.
I created a special reference report to test the label-, text-, dynamic text- and data elements. Attached the following details will be shown:
2.1 Labels
2.2 Text & Dynamic Text
2.3 Data Elements
3.1 The original report excel_indent.zip
3.2 The excel-output file with text-indent demo-excel-indent.xlsx
3.3 The pdf-output file for comparison demo-pdf.pdf
The change is merged to the master-branch.
The current implementation of the excel-emitter doesn't support the usage of the excel formatting option of text-indent. In the most cases addition blank columns were added to get the effect of an indent which increase the report structure and isn't really the best way to handle (simulate) the excel-indent.
The Apache POI library support the method "setIndention()" to set the indent for an excel-cell.
The target of the enhancement will be to add the indent-method and the spacing should be calculated based on the margin- & padding-spacing of the content element and also the cell-padding should be used to calculate the indent in full.
This would be a bigger change of the behavior for the excel output. Therefore I will implements an UserProperty to deactivate the indent setting with the name "ExcelEmitter.DisplayTextIndent" (default: true).
I will create a PR for this enhancement.