comeanother 0 Posted December 26, 2016 Share Posted December 26, 2016 Dear Evernote team, I've noticed that pasting text to evernote transforms original indentation. This is the original text with indents This is the same text pasted to evernote It looks like Evernote transforms original indentation and reduces number spaces down to 2. I'm using Ubuntu 16.04LTS with Chromium (Version 55.0.2883.87 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)). Please, have a look at this issue. Yours faithfully, Constantine Bonebryukh Link to comment
Level 5* jefito 5,598 Posted December 27, 2016 Level 5* Share Posted December 27, 2016 What is the original application (where you pasted from)? Is it a text editor? Link to comment
comeanother 0 Posted December 27, 2016 Author Share Posted December 27, 2016 Yes, it is standard ubuntu text editor (gedit). Also I've tried copy and paste from terminal and other websites. Link to comment
Level 5* jefito 5,598 Posted December 27, 2016 Level 5* Share Posted December 27, 2016 Depending on how the paste goes from the clipboard into Evernote web, indentation may not be preserved because in HTML (more or less Evernote's internal format), tabs and spaces aren't particularly meaningful. If there were some internal translation on paste, then it could recognize the indentation and apply the appropriate HTML markup, but if it goes straight in, indentation would indeed be lost. I'm guessing that it's the latter case. Link to comment
comeanother 0 Posted December 27, 2016 Author Share Posted December 27, 2016 I do not have any issues with google services, atlassian or github. But I need to note some .yml formatted text (indentations are mandatory). If Evernote Web brokes indentations it can be usefull for me no more. Link to comment
Level 5* jefito 5,598 Posted December 27, 2016 Level 5* Share Posted December 27, 2016 OK, so I took a text file that uses tab characters (in C or C++, '\t') for indentation. Selected and copied a section, and pasted it into a new note in the Evernote Web client. Synced this, and in the Evernote Windows client, exported it to an Evernote format file (.ENEX). I noted that each line is enclosed by a <div>...</div> HTML markup pair (occasionally there would be a <br /> break markup tag, to denote a blank line). Also I noted that tab characters were preserved. However, as noted before, tab characters have no meaning in HTML except as whitespace; indentation would be accomplished using some other method (appears to be <div style="margin-left:80px;"></div> markup, at least that's how the Windows program does it). Link to comment
comeanother 0 Posted December 30, 2016 Author Share Posted December 30, 2016 I'm using whitespaces. It seems that some JS script reformats pasted text. As you can see on screenshot, the number of spaces is preserved in page sources, but the page shows wrong number of spaces. Link to comment
Level 5* jefito 5,598 Posted December 30, 2016 Level 5* Share Posted December 30, 2016 30 minutes ago, comeanother said: I'm using whitespaces. Whitespace characters include actual space characters (' '), tab characters, carriage returns and line feeds. 31 minutes ago, comeanother said: It seems that some JS script reformats pasted text. Yes, it needs to do so that lines are preserved. In HTML, line feeds or carriage returns don't count as end-of-line markers; you need to add markup to denote lines. That's what the <div>...</div> stuff is doing. Here's some excruciating detail on that: https://www.w3.org/TR/html4/struct/text.html. It may be that the conversion adds extra space characters into the <div></div>, but I haven't looked all that deeply into it.To do actual indentation, you need more markup, which evidently doesn't occur. Link to comment
comeanother 0 Posted December 31, 2016 Author Share Posted December 31, 2016 I suppose, that Evernote Web should take care of markup stuff (as it has even WYSIWIG editor). I doubt that this option is too complex to implement or fix. I'm wondering am I first person who noted this inconvenience? Link to comment
comeanother 0 Posted December 31, 2016 Author Share Posted December 31, 2016 BTW, current forum editor preserve every space character (' '). Why not to use the same option in Evernote Web? Link to comment
comeanother 0 Posted December 31, 2016 Author Share Posted December 31, 2016 Dear @jefito and Evernote team, Here is a wishing that the coming year is a glorious one that rewards all your future endeavors with success. Happy New Year! Yours faithfully, Constantine Bonebryukh Link to comment
chrisk314 1 Posted February 13, 2017 Share Posted February 13, 2017 I have also run into this issue. I use the Evernote web app in Chromium as there is no Evernote client for Linux. This issue makes Evernote essentially useless for saving code snippets where indentation is very important either for code readability or correct execution. I am now looking for an Evernote alternative to use on Linux as I need a quick and efficient way to save code snippets and make notes on them at work. 1 Link to comment
comeanother 0 Posted February 25, 2017 Author Share Posted February 25, 2017 Hi Evernote Team, Should we expect any update (maybe ETA)? Link to comment
Jan Z 3 Posted September 28, 2017 Share Posted September 28, 2017 +1 to fixing this. Has tripped me up numerous times. Workaround: paste the text first into a Gmail message (preserves formatting), select the text in Gmail, copy, then paste in Evernote. 1 Link to comment
Pagw 2 Posted October 20, 2017 Share Posted October 20, 2017 +1 to fix this too. Thanks for the workaround Jan Z! Link to comment
seglo 1 Posted November 13, 2017 Share Posted November 13, 2017 This makes for a terrible experience for developers that paste code snippets into Evernote. I can't stand this limitation any longer, I'm cancelling my subscription. 1 Link to comment
vzaliva 0 Posted November 28, 2017 Share Posted November 28, 2017 Any plans on fixing this? As a developer, I would like to be able to save code snippets in Evernote. Formatting button [{}] called CODE suggest I should be able to do this. However, pasting plain text from my emacs drops all indentation (spaces). Interestingly, in this discussion forum, CODE button inserts code fragment with correct indentation: family_member := λ (j : nat) (jc : j < 2), UnSafeCast (SHPointwise Monoid_RthetaFlags (IgnoreIndex abs) ⊚ SafeCast (SHBinOp (SwapIndex2 j (IgnoreIndex2 sub))) ⊚ Gather Monoid_RthetaFlags (h_index_map j 2)) |} Could Evernote web app do the same? Link to comment
Mike Biglan 0 Posted January 3, 2019 Share Posted January 3, 2019 Strongly agree. +1 +1 +1. I paste my notes in all the time with tabs. Just preserve tabs, or even convert them to 4 spaces each. Ready to quit my evernote account over this. Link to comment
DannySantos 0 Posted August 8, 2019 Share Posted August 8, 2019 Far from ideal solution is to paste it into Notes first, that way it preserves indentation. But please fix this! Link to comment
Huy Phan 91 0 Posted April 15, 2020 Share Posted April 15, 2020 Hi, I just found a trick. Just paste your code to any HTML editor online like w3school https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default or any you can find. Then copy that text and paste to your evernote. Somehow, it just not work directly with native desktop editor. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now