From 43e5849015fb66680fbe17faa27544fd6188c14b Mon Sep 17 00:00:00 2001 From: lsaa Date: Tue, 27 Jun 2023 09:15:52 -0300 Subject: [PATCH] Only display the first line of Creator's Notes as description --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 7f621320a..c2fb2cc51 100644 --- a/public/script.js +++ b/public/script.js @@ -812,7 +812,7 @@ async function printCharacters() { template.toggleClass('is_fav', item.fav || item.fav == 'true'); template.find('.ch_fav').val(item.fav); - const description = item.data?.creator_notes || ''; + const description = item.data?.creator_notes.split('\n', 1)[0] || ''; if (description) { template.find('.ch_description').text(description); }