diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index c242e32839..ce5d85e37c 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -883,6 +883,7 @@ Zotero.Utilities = { if (str.length <= len) { return str; } + var origLen = str.length; let radius = Math.min(len, 5); if (wordBoundary) { let min = len - radius; @@ -896,7 +897,7 @@ Zotero.Utilities = { else { str = str.substr(0, len) } - return str + '\u2026' + (countChars ? ' (' + str.length + ' chars)' : ''); + return str + '\u2026' + (countChars ? ' (' + origLen + ' chars)' : ''); },