Don't append new line to raw tag text if the text is empty

This commit is contained in:
Quincy Morgan
2020-01-20 13:00:44 -05:00
parent 019e9a956c
commit d4dd92bc78

View File

@@ -349,7 +349,10 @@ export function uiRawTagEditor(context) {
})
.join('\n');
return _state === 'hover' ? str : str + '\n';
if (_state !== 'hover' && str.length) {
return str + '\n';
}
return str;
}