Only display the first line of Creator's Notes as description

This commit is contained in:
lsaa
2023-06-27 09:15:52 -03:00
parent 92775e459c
commit 43e5849015

View File

@ -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);
}