[CLI] sub-notebooks are not shown under the correct parent notebook

For some reason the sub-notebooks are not shown under the correct notebook. They are however denoted by an extra space in front of the notebook name.

Desktop client

Notebook 1
  Sub-notebook 1.A
Notebook 2
Notebook 3
Notebook 4

CLI client

Notebook 1
Notebook 2
Notebook 3
  Sub-notebook 1.A
Notebook 4

@laurent is this something that can be fixed easily? The code must be there already, since it works on all other platforms.

Yes I think so. I didn’t know about this bug. So i guess the correct one is the desktop app?

Yes, the desktop app and the mobile apps show the tree correctly.

/ref https://github.com/laurent22/joplin/issues/795