Skip to content

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

Merged
PoiScript merged 2 commits intoPoiScript:masterfrom
calmofthestorm:fix_is_commented
May 6, 2020
Merged

Fix is_commented to look for only a single space.#14
PoiScript merged 2 commits intoPoiScript:masterfrom
calmofthestorm:fix_is_commented

Conversation

@calmofthestorm
Copy link
Contributor

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.

Per the Org spec, the "first word" of the title must be COMMENT. They
don't define word more precisely, but I think this should include it
being the only word, and this seems to be Org's behavior currently.
@calmofthestorm
Copy link
Contributor Author

Amended to handle:
"* COMMENT "
"* COMMENT"

@PoiScript PoiScript merged commit 2dfe89f into PoiScript:master May 6, 2020
@calmofthestorm calmofthestorm deleted the fix_is_commented branch May 7, 2020 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants