Closed niels-s closed 6 months ago
We'll need to investigate. Thanks for reporting.
Tested that with different versions of jsonnet (0.18.0, 0.19.0, 0.19.1, latest version a3a1f0914dc3d2a6fd851edc8e5dc1ef52e372f7) and they all produce in the same correct result.
Tested on ubuntu 22.04.
I haven't been able to reproduce this, and a previous commenter wasn't able to reproduce either. I'll close this as wontfix/not reproducible, but if you're still aware of it happening and can reproduce then please reopen it!
We tried to upgrade from 0.18.0 to 0.19.1, but we stumbled on a regression, it seems, in the
std.rstripChars
function.When we try to remove a newline from our templated string
The result in version 0.18.0 is correct:
However, after upgrading to version 0.19.1, this is the result:
Another conclusion is the first link we add also seems to influence the result. If we compile
It works and yields the same results in v0.18.0 and v0.19.1