From f8ba1e97550c2acf927754cd2ca2ea7198d18177 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 2 Mar 2016 09:58:45 +0000 Subject: [PATCH] Fix - data renderer: Ellipsis renderer was prematurely cutting off words that would actually fit into the available character count - Thanks @smartcore - http://www.datatables.net/blog/2016-02-26 --- dataRender/ellipsis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataRender/ellipsis.js b/dataRender/ellipsis.js index 110073f..f73455e 100644 --- a/dataRender/ellipsis.js +++ b/dataRender/ellipsis.js @@ -68,7 +68,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) d = d.toString(); // cast numbers - if ( d.length < cutoff ) { + if ( d.length <= cutoff ) { return d; }