diff --git a/module/data/item/base.mjs b/module/data/item/base.mjs index 0ad0f38c..f0c840eb 100644 --- a/module/data/item/base.mjs +++ b/module/data/item/base.mjs @@ -141,16 +141,8 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel { async getEnrichedDescription() { if (!this.metadata.hasDescription) return ''; - const appendWithSeparator = (text, add) => { - if (!add) return text; - if (text) return `${text}\n
\n${add}`; - else return add; - }; - const { prefix, value, suffix } = await this.getDescriptionData(); - let fullDescription = prefix ?? ''; - fullDescription = appendWithSeparator(fullDescription, value); - fullDescription = appendWithSeparator(fullDescription, suffix); + const fullDescription = [prefix, value, suffix].filter(p => !!p).join('\n
\n'); return await foundry.applications.ux.TextEditor.implementation.enrichHTML(fullDescription, { relativeTo: this, diff --git a/styles/less/global/inventory-item.less b/styles/less/global/inventory-item.less index a17e2b35..c8a29795 100644 --- a/styles/less/global/inventory-item.less +++ b/styles/less/global/inventory-item.less @@ -211,18 +211,6 @@ ul { list-style: disc; } - - .feature-descriptions { - .features-header { - font-size: 14px; - font-weight: bold; - text-decoration: underline; - - &.large { - font-size: 18px; - } - } - } } } .item-resources {