Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
don't use for attributes since it (duh) prevents line breaking in case of inherited attributes
zadama37fa0cb3fe5
diff --git a/src/public/app/services/attribute_renderer.js b/src/public/app/services/attribute_renderer.jsindex 4f6cf741a4..2e585b117e 100644--- a/src/public/app/services/attribute_renderer.js+++ b/src/public/app/services/attribute_renderer.js@@ -12,7 +12,7 @@ function renderAttribute(attribute, $container, renderIsInheritable) {$container.append(document.createTextNode(formatValue(attribute.value)));}- $container.append(" ");+ $container.append(" ");} else if (attribute.type === 'relation') {if (attribute.isAutoLink) {return;@@ -21,7 +21,7 @@ function renderAttribute(attribute, $container, renderIsInheritable) {if (attribute.value) {$container.append(document.createTextNode('~' + attribute.name + isInheritable + "="));$container.append(createNoteLink(attribute.value));- $container.append(" ");+ $container.append(" ");} else {ws.logError(`Relation ${attribute.attributeId} has empty target`);}diff --git a/src/public/app/widgets/attribute_editor.js b/src/public/app/widgets/attribute_editor.jsindex d202ab67b0..4f5ceec02d 100644--- a/src/public/app/widgets/attribute_editor.js+++ b/src/public/app/widgets/attribute_editor.js@@ -467,7 +467,7 @@ export default class AttributeEditorWidget extends TabAwareWidget {}}- this.textEditor.setData($attributesContainer.html());+ this.textEditor.setData($attributesContainer.html() + " ");if (saved) {this.lastSavedContent = this.textEditor.getData();