michael.freidgeim 18 Posted March 18, 2016 Share Posted March 18, 2016 EverNote does undesired formatting when copying XML text from Visual Studio. It inserts extra spaces in some places after < and " , which will break syntax, if I will copy it back to XML config file. <dependentAssembly> < assemblyIdentity name =" PostSharp" publicKeyToken= "b13fd38b8f9c99d7 " culture="neutral" /> < bindingRedirect oldVersion =" 0.0.0.0-4.2.22.0" newVersion="4.2.22.0" /> </ dependentAssembly> When I paste it to Notepad, select/copy in notepad and then paste to EverNote, it is saved correctly(but losing colors): <dependentAssembly> <assemblyIdentity name="PostSharp" publicKeyToken="b13fd38b8f9c99d7" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.22.0" newVersion="4.2.22.0" /> </dependentAssembly> Can this be fixed? Link to comment
Level 5* JMichaelTX 4,118 Posted March 18, 2016 Level 5* Share Posted March 18, 2016 47 minutes ago, michael.freidgeim said: EverNote does undesired formatting when copying XML text from Visual Studio. It inserts extra spaces in some places after < and " , which will break syntax, if I will copy it back to XML config fi This is a known issue in both EN Win and EN Mac. It was resolved recently in EN Mac 6.5 with the introduction of a new "Code Block" feature. Hopefully this will be coming to EN Win very soon. Link to comment
michael.freidgeim 18 Posted May 5, 2016 Author Share Posted May 5, 2016 Unfortunately "Code Block" didn't help. I've clicked "{}" and inserted XML line. It was shown with extra spaces as < package id =" CommonServiceLocator" version= "1.0 " targetFramework =" net4" /> instead of original in XML <package id="CommonServiceLocator" version="1.0" targetFramework="net4" /> Link to comment
michael.freidgeim 18 Posted May 13, 2016 Author Share Posted May 13, 2016 Evernote inserts unexpected spaces to C# code as well. It happens regardless of I paste into Code Block or not. Instead of public static bool ContainsString(this IEnumerable<string> collection, string toFind, bool ignoreCase = true,bool trimStrings=false) { return collection.Contains(toFind, StringComparer.Create(CultureInfo.InvariantCulture, ignoreCase)); } When paste from Visual Studio, it inserts extra spaces public static bool ContainsString( this IEnumerable <string > collection, string toFind, bool ignoreCase = true, bool trimStrings= false) { return collection.Contains(toFind, StringComparer .Create(CultureInfo .InvariantCulture, ignoreCase)); } Link to comment
Liam Gretton 86 Posted May 13, 2016 Share Posted May 13, 2016 It's been broken this way for years and Evernote have shown no interest in fixing it unfortunately. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.