mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Don't append new line to raw tag text if the text is empty
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user