don't use   for attributes since it (duh) prevents line breaking in case of inherited attributes

This commit is contained in:
zadam 2020-09-02 23:16:56 +02:00
parent 647863b489
commit a37fa0cb3f
2 changed files with 3 additions and 3 deletions

View file

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

View file

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