Skip to content

Commit

Permalink
Remove the whitespaces in the HTML template
Browse files Browse the repository at this point in the history
To avoid suprising result in some rich text editor (i.e. Google
Document.) The functionality and behavior of the code should remain the
same.
  • Loading branch information
0x6b authored and complexspaces committed Feb 22, 2023
1 parent e1f521f commit f24df29
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/platform/osx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>{}</body>
</html>"#,
r#"<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>{}</body></html>"#,
html
);
let html_nss = NSString::from_str(&html);
Expand Down

0 comments on commit f24df29

Please sign in to comment.