diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index a2627f98e..abbef1108 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -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; }