New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser/metadecoders: Accumulate org keywords into arrays #11741
parser/metadecoders: Accumulate org keywords into arrays #11741
Conversation
|
From this project's README:
We first need to decide if we want to do this. This introduces yet another feature (multi-word strings) that is not natively supported by org mode. |
parser/metadecoders/decoder.go
Outdated
| } else if k == "tags" || k == "categories" || k == "aliases" { | ||
| log.Printf("warn: Please use '#+%s[]:' notation, automatic conversion is deprecated.", k) | ||
| frontMatter[k] = strings.Fields(v) | ||
| } else if strings.HasSuffix(k, "[]") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a repeated condition here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my, thanks for catching that. I've just fixed the commit.
|
Test site: |
0712bce
to
3429314
Compare
|
I've separated the patch into two commits. Do let me know if I should rebase them into one, though. |
|
Please squash the commits, and change the commit message per these guidelines: For example: |
3429314
to
26da0ae
Compare
|
Amazing, thanks for the hint. I've just squashed the commits. |
|
@bep I am in favor of merging this. The only users that will be negatively affected are those who have been ignoring a related warning for the past 4.5 years. |
Hey all! What are your thoughts on this change?
The keywords definition from the org syntax specification doesn't say we can't repeat keywords.
This change will also enable terms in org mode to have space.
Currently, repeated keywords are concatenated:
#+title: foo\n#+title: barwould render asfoo bar. With this change, it just doesn't render anything but hugo is not crashing either.