Jump to content

EverNote does undesired formatting when copying XML text from Visual Studio


Recommended Posts

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*
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
  • 1 month later...

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
  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...