Query about layout and fold marker on blank line

My app PaperTrail is a from-scratch reimplementation “by eye” of many TaskPaper layout and markup behaviours. I’m sure I’ve missed some! It’s fun to try to do it this way than to port code (plus, I didn’t know TaskPaper had some open source until after about 5 months of development).

Anyway, I wondered if there is reason for the following behaviour, or whether it’s a bug, or an unintentional side-effect that should be ignored (it gets my vote)

I will probably leave PaperTrail as it is, but I’m interested of the logic behind fold markers, breaks in flow, etc.

Sample Text

Test with blank line:
	- One
	Two:
		- Three

			- Four
				- Five

Test with indent:
	- One
	Two:
		- Three
			
			- Four
				- Five

Test with uninterrupted flow:
	- One
	Two:
		- Three
			- Four
				- Five

TaskPaper 3.9.4

PaperTrail

I think I did this a few different ways over TaskPaper’s evolution.

The behavior in latest TaskPaper is (I think!): Tab Indentation determines structure. I think this is the simplest rule, empty lines are not special cased.

I’m not sure how important it is to follow that design exactly, but I am a little confused by the UI you are showing. In cases 1, and 2 what happens when you collapse the first line? Does the empty line and Four, Five get hidden in both cases? Or in neither case?

I’ve not done a great job of showing this.

But yeah, in TaskPaper only the one with the blank line splits the list into two.

And in PaperTrail both the blank line and intended line with tabs breaks the list into two.

So I’ll look at honouring the indent! Thanks