From f24df29337466a32fd85e3074b912305f3f8a191 Mon Sep 17 00:00:00 2001 From: kaoru Date: Thu, 16 Feb 2023 22:23:47 +0900 Subject: [PATCH] Remove the whitespaces in the HTML template To avoid suprising result in some rich text editor (i.e. Google Document.) The functionality and behavior of the code should remain the same. --- src/platform/osx.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/platform/osx.rs b/src/platform/osx.rs index 8b41def..a0fbf7b 100644 --- a/src/platform/osx.rs +++ b/src/platform/osx.rs @@ -280,12 +280,7 @@ impl<'clipboard> Set<'clipboard> { // https://bugzilla.mozilla.org/show_bug.cgi?id=466599 // https://bugs.chromium.org/p/chromium/issues/detail?id=11957 let html = format!( - r#" - - - - {} - "#, + r#"{}"#, html ); let html_nss = NSString::from_str(&html);