sublime-evernote icon indicating copy to clipboard operation
sublime-evernote copied to clipboard

Code is not indented properly

Open harishv7 opened this issue 8 years ago • 6 comments

Writing this:

public static void main(String[] args) {
	System.out.println("Hello");
}

gives me this on Evernote: screen shot 2017-01-25 at 11 17 28 am

Is it possible to maintain the indentation as in Sublime onto Evernote?

harishv7 avatar Jan 25 '17 03:01 harishv7

Indentation and line breaks should be preserved if you mark the code as code. Which command are you using? Clip to Evernote? Writing a new note and using Markdown?

bordaigorl avatar Jan 25 '17 11:01 bordaigorl

I am actually writing a new note and using Markdown (eg: java some_code ) I realised that the indentation and line breaks are not preserved on the web version and mac app for Evernote.

Web-version: screen shot 2017-01-25 at 9 18 19 pm

On the Mac app: screen shot 2017-01-25 at 9 21 38 pm

harishv7 avatar Jan 25 '17 13:01 harishv7

I need to see your Markdown to be sure it's a bug.

Try with the following (mind the linebreaks at the code delimiters):

```java
public static void main(String[] args) {
    System.out.println("Hello");
}
```

bordaigorl avatar Jan 30 '17 08:01 bordaigorl

It's working properly on my Mac app. But on iOS (ipad and iphone), indentation is messed up.

trevorzhou avatar Feb 19 '17 04:02 trevorzhou

Have had the same issues when working with Sublime and Evernote on a Mac. The issues haven't occured on Windows. Forgotten to test Sublime on Linux then viewing on either Mac or Windows.

But as of now everything seems to be ok, even EN Web and EN on iOS.

antiphasis avatar Apr 20 '17 10:04 antiphasis

I also met the same issue on mac

kelizhong avatar Aug 06 '17 04:08 kelizhong