Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Leading zeros problem in a string that contains an integer #16

Closed
aserratorta opened this issue Sep 28, 2016 · 3 comments
Closed

Leading zeros problem in a string that contains an integer #16

aserratorta opened this issue Sep 28, 2016 · 3 comments

Comments

@aserratorta
Copy link
Contributor

I have a problem when I try to render a string that contains an integer value into a cell.

{% xlscell { dataType: 's' }%}
       {{ myValue }}
{% endxlscell %}

If myValue = '1.50' (as a string) then it renders a 1.5 integer value into excel file. I found some information here and here

The problem is that I need to execute setValueExplicit method instead of setValue.

I can provide a PR to solve this behaviour if you want. Are you agree?

@davidromani
Copy link
Contributor

👍

MewesK added a commit that referenced this issue Oct 9, 2016
@MewesK
Copy link
Owner

MewesK commented Oct 9, 2016

Thanks for the PR! I have renamed the property to 'explicitValue' to fit the naming scheme better and added a unit test to cover the new feature. Will be part of version 2.2 which will be released today.

@MewesK MewesK closed this as completed Oct 9, 2016
@aserratorta
Copy link
Contributor Author

You’re welcome!

El 9 oct 2016, a les 17:43, Mewes Kochheim notifications@github.com va escriure:

Thanks for the PR! I have renamed the property to 'explicitValue' to fit the naming scheme better and added a unit test to cover the new feature. Will be part of version 2.2 which will be released today.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #16 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AMXuoco5_zPBx7e_KYa6ZqPT6gkfNoNEks5qyQucgaJpZM4KI4e5.

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

No branches or pull requests

3 participants