Skip to content
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

Nice, but would be great if HTML was designed to then be copied back into Sublime! #4

Open
legel opened this issue Nov 5, 2020 · 3 comments

Comments

@legel
Copy link

legel commented Nov 5, 2020

Wondering if there is a way to embed spaces/tabs and new lines properly into the HTML, so that when Sublime (let's say from another user) sees it, it instantly is properly fomatted. As is, it's just a garbage blob.

@liulex
Copy link
Owner

liulex commented Nov 7, 2020

Sorry, I don't get what you mean. As I see it, the html can be pasted back into Sublime without problem.

@legel
Copy link
Author

legel commented Nov 12, 2020

Here is the example I did:
https://legel.s3.amazonaws.com/blah.html

It looks great as HTML!
And actually, now that I publish it online, the copy and paste works!

So I figured out what didn't work.
It's when I copy and paste the HTML into Gmail.
My use case was to share code in emails with a colleague.

The code copies into Gmail just fine and looks great.
But when it copies back to Sublime, all of the code is only on one line.

code_all_on_one_line_from_email_copy_paste

@liulex
Copy link
Owner

liulex commented Nov 12, 2020

I did some tests. It seems more like a Gmail issue:
If the pasted html is formated with <pre>, Gmail will drop <pre> if copy again from Gmail.

You can verify it by copying some code from https://stackoverflow.com (which also uses <pre>) and paste it into Gmail, then copy them from Gmail and paste otherwhere. The line breaks are also lost. So it's not the problem of this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants