PoiScript / orgize

A Rust library for parsing org-mode files.
https://poiscript.github.io/orgize/
MIT License
278 stars 34 forks source link

Fix is_commented to look for only a single space. #14

Closed calmofthestorm closed 4 years ago

calmofthestorm commented 4 years ago

Two spaces is incorrect, but I also briefly checked whether other whitespace should be allowed. The org spec states:

If the first word appearing in the title is “COMMENT”, the headline will be considered as “commented”. Case is significant.

But it does not define "word". From trying it out in Emacs, tabs don't work, it must be followed by at least one space.

calmofthestorm commented 4 years ago

Amended to handle: " COMMENT " " COMMENT"