Code Monkey home page Code Monkey logo

Comments (8)

amake avatar amake commented on May 24, 2024 1

There are two layers to this:

  1. Due to a dumb mistake, plain paragraphs inside a drawer (as opposed to properties like :foo: bar) were causing parsing of the drawer to fail. I've fixed that in amake/org_parser@10c45e1.
  2. Next the problem is that the CLOCK: lines are treated as regular text paragraphs, which means they get reflowed and smooshed together. I've opened amake/org_parser#2 to deal with this.

from orgro.

amake avatar amake commented on May 24, 2024

I think I only supported :PROPERTIES: because actually the opening token can be anything matching :\S+: and I was worried about the cost.

But I will see about doing it right.

from orgro.

amake avatar amake commented on May 24, 2024

Actually it should support any opening token:

https://github.com/amake/org_parser/blob/2d7b04fe5d7744d7e7b295a35007bad48894f3a8/lib/src/grammar.dart#L530-L536

I'm not sure why your example isn't parsed right. Can you provide a raw snippet so I can test?

from orgro.

psamim avatar psamim commented on May 24, 2024

Sure,

* Other
** Checking emails
:LOGBOOK:
CLOCK: [2021-01-23 Sat 09:30]--[2021-01-23 Sat 10:19] =>  0:49
CLOCK: [2021-01-11 Mon 21:31]--[2021-01-11 Mon 21:50] =>  0:19
CLOCK: [2021-01-02 Sat 18:46]--[2021-01-02 Sat 19:36] =>  0:50
:END:

from orgro.

amake avatar amake commented on May 24, 2024

I've fixed this issue in v1.14.0. Test builds will be available shortly:

from orgro.

psamim avatar psamim commented on May 24, 2024

Thanks! I'll test as soon as the new version is published on FDroid.

from orgro.

amake avatar amake commented on May 24, 2024

v1.14.0 is now available in F-Droid.

from orgro.

psamim avatar psamim commented on May 24, 2024

from orgro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.