swift-org icon indicating copy to clipboard operation
swift-org copied to clipboard

Separation of Notes in Logbook

Open mgmart opened this issue 8 years ago • 1 comments

First of all I want to congratulate you for this awesome library.

Whilst playing with it, I found some minor inconveniences which I would like to address here. If there are notes in a Logbook it shows as many entries in the content array. It would be more convenient to have only one entry per note.

    - name : "LOGBOOK"
    ▿ content : 18 elements
      - 0 : "   - Note taken on [2017-01-04 Wed 18:46] \\\\"
      - 1 : "     Note for habit"
      - 2 : "     "
      - 3 : "     Third line of note"
      - 4 : "   - State \"DONE\"       from \"TODO\"       [2016-12-15 Thu 07:45]"
      - 5 : "   - State \"DONE\"       from \"TODO\"       [2016-12-15 Thu 07:45]"
      - 6 : "   - State \"DONE\"       from \"TODO\"       [2016-12-13 Tue 20:19]"
      - 7 : "   - State \"DONE\"       from \"TODO\"       [2016-12-08 Thu 16:18]"
      - 8 : "   - State \"DONE\"       from \"TODO\"       [2016-12-06 Tue 23:08]"
      - 9 : "   - State \"DONE\"       from \"TODO\"       [2016-12-05 Mon 22:10]"
      - 10 : "   - State \"DONE\"       from \"TODO\"       [2016-12-05 Mon 09:41]"
      - 11 : "   - State \"DONE\"       from \"TODO\"       [2016-12-04 Sun 10:45]"
      - 12 : "   - State \"DONE\"       from \"TODO\"       [2016-02-01 Mon 19:37]"
      - 13 : "   - State \"DONE\"       from \"TODO\"       [2015-09-24 Thu 23:59]"
      - 14 : "   - State \"DONE\"       from \"TODO\"       [2015-08-18 Tue 23:59]"
      - 15 : "   - State \"DONE\"       from \"TODO\"       [2015-08-15 Sat 23:59]"
      - 16 : "   - State \"DONE\"       from \"TODO\"       [2015-08-14 Fri 18:07]"
      - 17 : "   - State \"DONE\"       from \"TODO\"       [2015-08-13 Thu 23:59]"

mgmart avatar Jan 06 '17 09:01 mgmart

It is a temporary solution. All content within Drawers are considered raw data for now. It will be properly parsed later base on the type of the block.

xiaoxinghu avatar Jan 06 '17 10:01 xiaoxinghu