Created by Leslie Krause 2018-08-16 View revision File crop.lua Added Side-by-side diff More Ignore whitespace Hide word diff +string.crop = function ( str, len ) + return string.len( str ) > len and ( string.sub( str, 1, len ) .. "..." ) or str +end