mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08:00
don't use for attributes since it (duh) prevents line breaking in case of inherited attributes
This commit is contained in:
parent
647863b489
commit
a37fa0cb3f
|
@ -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`);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue