-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There seems to be a limit to the length when writing to html. and will be automatically truncated. #29
Comments
I did this experiment on Mac and Windows. Mac had no problem writing a large html, but windows couldn't handle large html. use clipboard_rs::{ClipboardContext, Clipboard};
fn main() {
let ctx = ClipboardContext::new().unwrap();
let html = std::fs::read_to_string("./text.html").unwrap();
println!("Length (original): {}", html.len());
ctx.set_html(html).unwrap();
let html = ctx.get_html().unwrap();
println!("Length: {}", html.len());
} stdout
Reading html on Windows works. Reading and writing on Ubuntu work. |
fix in ChurchTao/clipboard-rs#24 |
HuakunShen
added a commit
that referenced
this issue
May 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@HuakunShen
Platform: Windows 11
Version: 0.6.8
I added some code to the example for testing:
result:
The text was updated successfully, but these errors were encountered: