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

Number format not applied to values in email #109

Open
psteiwer opened this issue Dec 21, 2021 · 0 comments
Open

Number format not applied to values in email #109

psteiwer opened this issue Dec 21, 2021 · 0 comments

Comments

@psteiwer
Copy link
Owner

psteiwer commented Dec 21, 2021

Example value in Excel:
<td style="mso-number-format:#0\.0" x:num>6.515151515151515152</td>
Excel understands this style, email clients do not. This means when opened in Excel, the format is applied. In the email, the format is not applied. I am not sure where the style is lost, but the email seems to convert it at some point:

<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>6.515151515151515152</p>
</td>

This may mean that while writing to the email, we need to deconstruct the mso-number-format and apply formatting to the actual number instead of trying to pass through a number format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant