4 ms·
The way I would do it is to parse the blocks sequentially, and ignore the indentation. Maybe you are doing that already?
by forgotmypw17 6y ago
The way I would do it is to parse the blocks sequentially, and ignore the indentation. Maybe you are doing that already?
- jotaen 6y agoProblem is (unless I’m misunderstanding you) that the entries must be unanimously distinguishable from the summary text. Consider: 2018-03-27 Tried to do this and that, but had to stop after 30m because of a phone call. 30m Some activity The fourth line could not be told apart from an entry (the fifth line) without indentation or some other special character.
- forgotmypw17 6y agoThat's what I'm talking about. Now, imagine you take that block and copy it from one text file and into another. The meaning is now completely lost. I think that using lines as separators is a better idea. However, it is true that it requires care and brevity when writing your item lines.