From d4dd92bc78680c88d072baadf3c4af25e6617f2e Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 20 Jan 2020 13:00:44 -0500 Subject: [PATCH] Don't append new line to raw tag text if the text is empty --- modules/ui/raw_tag_editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }