diff --git a/src/main/system.js b/src/main/system.js index 887930c..c714d86 100644 --- a/src/main/system.js +++ b/src/main/system.js @@ -207,7 +207,7 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) { * @return {string} */ function stringCut(str, limit, trail = '...') { - const cutStr = str.trim().split('\n')[0].trim(); + const cutStr = str.trim().split('\n').map((s) => s.trim()).join(' '); if (cutStr.length <= limit) { return cutStr;