You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently org.dhatim.fastexcel.StringCache hardcodes the value of each t tag.
It means we cannot customise the attribute of this tag. By default, Excel trims the text values and we need to add the property xml:space="preserve" in order to not trim the text.
Example
sheet.value(0, "\nmy\nvalue\n") will be exported in a correct format but as soon as the file is opened by Excel with default settings the value will be equal to "my\nvalue"
Suggestion
You could add a boolean property to the org.dhatim.fastexcel.StringCache class
And update the write method to set the t tag with the correct attribute (<t xml:space="preserve">)
If it makes senses a customise attribute list could be added.
The text was updated successfully, but these errors were encountered:
Hello,
Context
Currently org.dhatim.fastexcel.StringCache hardcodes the value of each
t
tag.It means we cannot customise the attribute of this tag. By default, Excel trims the text values and we need to add the property
xml:space="preserve"
in order to not trim the text.Example
sheet.value(0, "\nmy\nvalue\n")
will be exported in a correct format but as soon as the file is opened by Excel with default settings the value will be equal to "my\nvalue"Suggestion
You could add a boolean property to the org.dhatim.fastexcel.StringCache class
And update the write method to set the
t
tag with the correct attribute (<t xml:space="preserve">
)If it makes senses a customise attribute list could be added.
The text was updated successfully, but these errors were encountered: