{"action":"closed","issue":{"url":"https://api.github.com/repos/lierdakil/pandoc-crossref/issues/75","repository_url":"https://api.github.com/repos/lierdakil/pandoc-crossref","labels_url":"https://api.github.com/repos/lierdakil/pandoc-crossref/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/lierdakil/pandoc-crossref/issues/75/comments","events_url":"https://api.github.com/repos/lierdakil/pandoc-crossref/issues/75/events","html_url":"https://github.com/lierdakil/pandoc-crossref/issues/75","id":162238915,"number":75,"title":"Empty labels quoted vs unquoted ","user":{"login":"infotroph","id":1256435,"avatar_url":"https://avatars.githubusercontent.com/u/1256435?v=3","gravatar_id":"","url":"https://api.github.com/users/infotroph","html_url":"https://github.com/infotroph","followers_url":"https://api.github.com/users/infotroph/followers","following_url":"https://api.github.com/users/infotroph/following{/other_user}","gists_url":"https://api.github.com/users/infotroph/gists{/gist_id}","starred_url":"https://api.github.com/users/infotroph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infotroph/subscriptions","organizations_url":"https://api.github.com/users/infotroph/orgs","repos_url":"https://api.github.com/users/infotroph/repos","events_url":"https://api.github.com/users/infotroph/events{/privacy}","received_events_url":"https://api.github.com/users/infotroph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lierdakil/pandoc-crossref/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-24T22:01:49Z","updated_at":"2016-06-24T22:06:07Z","closed_at":"2016-06-24T22:06:07Z","body":"When defining custom section labels, quoting seems to work differently for empty and non-empty strings:\r\n\r\nUnquoted labels work as I expect (barring other weirdness, e.g. spaces in the label):\r\n\r\n```{markdown}\r\n---\r\nchapDelim: \"\"\r\n---\r\n\r\n# Main {label=}\r\n\r\n## Section 1 {#sec:firstsec}\r\n\r\n# Supplement {label=S}\r\n\r\n## Section S1 {#sec:othersec}\r\n\r\nPrints 'sec. 1 & sec. S1': @sec:firstsec & @sec:othersec\r\n```\r\n\r\nCompare to the quoted version, which I was expecting to produce identical output: \r\n\r\n```{markdown}\r\n---\r\nchapDelim: \"\"\r\n---\r\n\r\n# Main {label=\"\"}\r\n\r\n## Section 1 {#sec:firstsec}\r\n\r\n# Supplement {label=\"S\"}\r\n\r\n## Section S1 {#sec:othersec}\r\n\r\nExpecting 'sec. 1 & sec. S1', prints 'sec. \"\"1 & sec. S1': @sec:firstsec & @sec:othersec\r\n```\r\n\r\n"}}
{"actor":{"display_login":"lierdakil"}}