textwrap with ellipsis and nowrap white-space
I would like to cut off some long text using an
However, with my current implementation, it doesn’t include extra words that would cause it to go beyond the
div and does not show
ellipsis to indicate that the text is cut off.
What am I doing wrong?
text-overflow: ellipsis along with