One possible solution is to use Adobe InDesign. This offer you the possibility to visually create ebooks, (with forms and so on). But you can't edit already created ebooks. Also this product can cost you 21 USD/mo. Of course you have trial, probably student license.
P.S. No affiliate with Adobe
I can suggest the CudaText editor, which supports Python plugins. You can write a plugin which handles on_change event, and do the needed indentations, ie insert blank lines or tab-chars.
Usual editors don't do such indents.
If you use CudaText editor, it's easy to write a plugin in Python, and call it "Paste 2", then you can call it from "Plugins / Paste 2" menu. Plugin can take the clipboard contents, and insert tab-char into it, and do the insertion with that tab-char.
There is a linux command-line tool paste. Perhaps it can do what you want. (So paste not really an editor. It rather operates on text files, or text input.)
paste - merge lines of files
paste [OPTION]... [FILE]...
Write lines consisting of the sequentially corresponding lines
from each FILE, separated ...