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
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?