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

separator omitted when first argument is null or empty #102

Open
rrs opened this issue Mar 16, 2018 · 0 comments
Open

separator omitted when first argument is null or empty #102

rrs opened this issue Mar 16, 2018 · 0 comments

Comments

@rrs
Copy link

rrs commented Mar 16, 2018

consider the template
<["Wendy",,"Jane"]; separator=",", null="">
it will print
Wendy,,Jane
however the template
<[,"Wendy","Jane"]; separator=",", null="">
will print
Wendy,Jane
and not
,Wendy,Jane

This is an issue for a template i have that builds a csv output, when the first column happens to contain null values. A work around is to use null=" " however that means there would be no distinction between "" and " "

Further to that if i have a dictionary i wish to print in a line and use
<d.keys:{k | <d.(k)>}; separator=",", null=" ">
then there is nothing i can do to keep the leading comma as the dictionary lookup resolves to "" even if the value is null and therefore doesn't count towards the null replacement.

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