Processing pasted tabs

I have ‘Indent Unit’ set to 4 in Inkdrop and TAB is entered as Space x 4.

However, when I copy and paste a code snippet from another editor, the tab does not expand into a space, but remains \t, which is Space x 2.

I have to readjust the indentation in Inkdrop every time.

I think it would be appropriate if pasted tabs were also rendered according to the ‘Indent Unit’.

Info

  • Platform: (Windows)
  • Platform version: (10)
  • App Version: (5.3.1)

Reproduce

Copy and paste code or documents that contain tabs.

Hey Avis,

Let me answer after the paternity break!

Congratulations on that!
I’m not in a hurry, so it’s okay.

CodeMirror has an option tabSize: https://codemirror.net/doc/manual.html#option_tabSize
So, it’d be nice to support it instead of converting tabs into spaces.