carbone
carbone copied to clipboard
[Bug Report]: formatter result delete spaces
Environment Carbone Version: 1.2.1 Node Version: Node 10.15.X
Expected Behaviour Formatters should return the result while conserving spaces
Actual Behaviour formatters returns the formatted string with all spaces removed.
Maybe it is intended but having a way to avoid this behaviour would be most appreciated ! 👍
Steps to reproduce template.odt :
{d.bool:ifEqual(true, “some sentence”)}
{d.test:ifEmpty(“some other sentence”)}
returns in pdf form:
somesentence
someothersentence
EDIT: had an issue with quotes but I was misled by documentation where they are always used inside formatter functions.
Hi @ZFLloyd,
First, thank you for your message. We are already aware of this issue, it's closely related to an existing issue #44. It is one of our next priorities for the next release. Hold on, we will come back to you.
Thanks for the quick response @steevepay ! Is there an ETA for the next release containing a bugfix for this?
@ZFLloyd middle or end of January 2020 maximum (or maybe sooner)
Hi @steevepay Are there any updates?
Hi @jdim, to give you updates: https://github.com/Ideolys/carbone/issues/9#issuecomment-615142315 The issue is fixed for the next version.
It is fixed on the new version, check out the v2 branch on Github or directly NPM: npm install [email protected] The changes with examples are available on the changelog.