orgmode-parse icon indicating copy to clipboard operation
orgmode-parse copied to clipboard

Colons in headline title are wrongly parsed as tags

Open vfaronov opened this issue 5 years ago • 3 comments

Parsing this text:

* foo: bar:
baz

results in:

Headline {depth = Depth 1, title = "foo", tags = [" bar"], ...

but should result in:

Headline {depth = Depth 1, title = "foo: bar:", tags = [], ...

vfaronov avatar May 10 '20 13:05 vfaronov

A partial fix would be to limit tags to the characters allowed by the Org syntax draft (alphanumeric and some punctuation). But a headline like this would still be parsed incorrectly:

* foo bar:baz:

vfaronov avatar May 10 '20 15:05 vfaronov

I confirm I also have this problem. I just found it and wanted to submit my own issue on this. Probably the solution would be to disallow spaces in tags? As far as I understand this is what org-mode does as well.

volhovm avatar Dec 01 '20 13:12 volhovm

I don't have time to address this myself but I'm very open to pull requests from contributors!

ixmatus avatar Feb 21 '22 20:02 ixmatus