I am using [django-tables2](https://django-tables2.readthedocs.io/en/latest/) and I have a field that has really long text.

[![django-table2 long text](https://i.stack.imgur.com/qYMda.png)](https://i.stack.imgur.com/qYMda.png)

Which I would like to truncate like this:

[![django-table2 shortened text](https://i.stack.imgur.com/4UERU.png)](https://i.stack.imgur.com/4UERU.png)

It is a bootstrap table:

```
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'

```

I have tried this answer about [truncating text in a bootstrap table](https://stackoverflow.com/questions/39148127/how-to-work-with-ellipsis-in-bootstrap-table-responsive), but it makes all rows a single line and truncates a bit too much.
How can I do this in code?