% for i, line in enumerate(chat): <% steamid, other = line.split(',', 1) name, line = other.split(':', 1) %> % if i%2 == 0: % else: % endif % endfor
<${name}>${line.strip()}${line.strip()}