title: Using Django tables 2, how do you cut off a long text field with an ellipsis?
body: <p>I am using <a href="https://django-tables2.readthedocs.io/en/latest/" rel="nofollow noreferrer">django-tables2</a> and I have a field that has really long text.</p>
  
  <p><a href="https://i.stack.imgur.com/qYMda.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qYMda.png" alt="django-table2 long text"></a></p>
  
  <p>Which I would like to truncate like this:</p>
  
  <p><a href="https://i.stack.imgur.com/4UERU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4UERU.png" alt="django-table2 shortened text"></a></p>
  
  <p>It is a bootstrap table:</p>
  
  <pre><code>class EntryRecordTable(tables.Table):
      ...
      comment = tables.Column(accessor=A('Comment'))
  
      class Meta:
          template_name = 'django_tables2/bootstrap-responsive.html'
          attrs = {'class': 'table table-bordered'}
          orderable = False
          empty_text = 'No entries for selected dates'
  </code></pre>
  
  <p>I have tried this answer about <a href="https://stackoverflow.com/questions/39148127/how-to-work-with-ellipsis-in-bootstrap-table-responsive">truncating text in a bootstrap table</a>, but it makes all rows a single line and truncates a bit too much.
  How can I do this in code?</p>