<% packet_count = packets.length %> <% column_1_packet_count = packet_count / 3 %> <% column_2_packet_count = packet_count / 3 %> <% column_3_packet_count = packet_count / 3 %> <% column_1_packet_count += 1 if ((packet_count % 3) != 0) %> <% column_2_packet_count += 1 if ((packet_count % 3) == 2) %> <% if title.empty? %>

Table of Contents

<% else %>

<%= title.split[1..-1].join(' ') %>

<% end %>