I populate textarea with
textarea.value='{%for i in range(0,3)%}{{data[i][0]}}{% endfor %}'.
But It produces string without spaces in between i so the output is like
firstsecondthird. I'd like it to be first second third.
What are the ways to do it?
You need to do it outside the calculation part:
textarea.value='{%for i in range(0,3)%}{{data[i][0]}} {% endfor %}'
Notice the space after {{data[i][0]}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With