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(document.createTextNode(formatValue(attribute.value)));
} }
$container.append(" "); $container.append(" ");
} else if (attribute.type === 'relation') { } else if (attribute.type === 'relation') {
if (attribute.isAutoLink) { if (attribute.isAutoLink) {
return; return;
@ -21,7 +21,7 @@ function renderAttribute(attribute, $container, renderIsInheritable) {
if (attribute.value) { if (attribute.value) {
$container.append(document.createTextNode('~' + attribute.name + isInheritable + "=")); $container.append(document.createTextNode('~' + attribute.name + isInheritable + "="));
$container.append(createNoteLink(attribute.value)); $container.append(createNoteLink(attribute.value));
$container.append(" "); $container.append(" ");
} else { } else {
ws.logError(`Relation ${attribute.attributeId} has empty target`); 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) { if (saved) {
this.lastSavedContent = this.textEditor.getData(); this.lastSavedContent = this.textEditor.getData();