{% assign cmd = include.cmd | newline_to_br | strip_newlines %}
{% assign br = '
' %}
{% assign br_len = br | size %}
{% assign prefix = cmd | slice: 0,br_len %}
{% if prefix == br %}
{% assign cmd = cmd | remove_first: br %}
{% endif %}
{% assign cmd = cmd | split: br %}
{% assign new_cmd = '' | split: '' %}
{% for line in cmd %}
{% capture new_line %}{{ line }}
{% endcapture %}
{% assign new_cmd = new_cmd | push: new_line %}
{% endfor %}
{% assign cmd = new_cmd %}
{% assign cmd = cmd | join: '' %}
{% if include.out %}
{{ include.out }}
{% endif %}