{"comment":{"created_at":"2011-10-19T10:44:13Z","body":"I think this is as simple as just removing the \"- 3\". I personally think it makes more sense for the maxLength option to correspond to the number of characters to which the original text is truncated, rather than the length of the truncated text *plus* that of the \"more\" link.\r\n\r\n-Steve","updated_at":"2011-10-19T10:44:13Z","url":"https://api.github.com/repos/renderedtext/jquery.truncator.js/issues/comments/2454266","id":2454266,"user":{"avatar_url":"https://secure.gravatar.com/avatar/04f3babefa4ba85e7904b40e6846e217?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"04f3babefa4ba85e7904b40e6846e217","url":"https://api.github.com/users/purcell","id":5636,"login":"purcell"}},"action":"created","issue":{"number":2,"created_at":"2011-10-19T10:13:10Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Steve rightfully says:\r\n\r\n> BTW, I noticed that the max-length calculation using the magic number 3 is no longer accurate/relevant, but I left it unchanged because it affects the overall behaviour. It's not easy to calculate the character length of the customisable \"more\" link because the string might contain \"→\" entities or suchlike. It would therefore really be best to remove the adjustment to max-length, and instead rely on users to adjust max length according to the \"more\" text they have configured.","comments":1,"title":"Adjustable max length","updated_at":"2011-10-19T10:44:13Z","url":"https://api.github.com/repos/renderedtext/jquery.truncator.js/issues/2","id":1992405,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/4062b608b628a89adeb54ec61e464c32?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4062b608b628a89adeb54ec61e464c32","url":"https://api.github.com/users/markoa","id":8651,"login":"markoa"},"html_url":"https://github.com/renderedtext/jquery.truncator.js/issues/2","labels":[],"state":"open"},"legacy":{"issue_id":1992405,"comment_id":2454266}}