title: Jinja - how to force truncate when value exceeds specified field width
body: <p>I have started with the following ninja2 template, but If the value of the 2nd column is > the specified width, it simply prints the entire string and the rest of the columns shift right.</p>
  
  <pre><code>{{ "%-7s"|format(tbl[3]) }}      {{ "%-12s"|format(tbl[5]) }}    {{ "%14s"|format(tbl[6]) }}
  </code></pre>
  
  <p>The problem I want to solve is how to truncate the second column when (and only when) the tbl[5] value exceeds the column width.</p>
  
  <p>Any ideas.  I've googled, but can't find an answer.</p>