jquery.dotdotdot truncation issue

jquery.dotdotdot does not truncate text when the overflow is a single word with no spaces

by slashingweapon

HTML

<script src="http://dotdotdot.frebsite.nl/js/jquery.dotdotdot-1.2.1.js"></script>
<div id="wrapper">this_does_not_truncate_because_there_are_no_spaces</div>
<br><br>
<div id="wrapper2">this one has spaces and is truncated properly</div>

CSS

#wrapper {
    width: 100px;
    height: 20px;
    border: 1px solid red;
    text-overflow:ellipsis;
}
#wrapper2 {
    width: 100px;
    height: 20px;
    border: 1px solid red;
    text-overflow:ellipsis;
}