carbone icon indicating copy to clipboard operation
carbone copied to clipboard

[Bug Report]: formatter result delete spaces

Open floriantz opened this issue 5 years ago • 6 comments

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.

floriantz avatar Dec 16 '19 10:12 floriantz

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.

steevepay avatar Dec 16 '19 16:12 steevepay

Thanks for the quick response @steevepay ! Is there an ETA for the next release containing a bugfix for this?

floriantz avatar Dec 17 '19 15:12 floriantz

@ZFLloyd middle or end of January 2020 maximum (or maybe sooner)

steevepay avatar Dec 30 '19 14:12 steevepay

Hi @steevepay Are there any updates?

jdim avatar May 07 '20 08:05 jdim

Hi @jdim, to give you updates: https://github.com/Ideolys/carbone/issues/9#issuecomment-615142315 The issue is fixed for the next version.

steevepay avatar May 11 '20 15:05 steevepay

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.

steevepay avatar May 14 '20 09:05 steevepay