I am trying to print a line of text to a file such that field1 is separated from field2 by 16 characters. I have a template like this working:
{% for item in collection %} {{ item.name }}{{ " " |truncate(16-(item.name|length)) }}{{ name.value }} {% endfor %} So the " " field is 16 spaces, and the longest item.name is 15 chars, so that line should have only one space between it and its item.value, while other lines will have their item.value's lined up in the same column. This is mostly working, but this is my exact output: item1 ...v01 item02 ...v2 the_15-chr_item ...v03 item0004 ...v04 Where are all the '...'s coming from? When I changed the 'truncate' line to 'truncate(13-(item.name|length)', I got this: item1 ...v01 item02 ...v2 the_15-chr_item...v03 item0004 ...v04 Technically correct, but again still with '...'. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/39e4f088-4424-4ba4-a94f-483ac1c94ca3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.