Tab Spacing incorrect with Brackets

Bug report

When writing JavaScript in code fences, the brackets are tabbed incorrectly. When pressing enter, the ending bracket should be at the start of the new line (first function in block). Instead, Inkdrops defaults to add extra tab spacing to line up the bracket with the previous bracket (second function in block).

10 AM


  • Platform: (macOS)
  • Platform version: (Sierra/10/16.04)
  • App Version: (3.9.0)

Hi Stephen,

Thank you for reporting it!
It seems to be a bug of CodeMirror.
It looks like complicated but I’ll look into it.

Couldn’t find a solution unfortunately, so I reported it to CodeMirror community.

It’s already been fixed. Sorry, I forgot to report it.
Thanks for reporting!