emacsorphanage / ox-pandoc

Another org-mode exporter via pandoc.
GNU General Public License v2.0
48 stars 13 forks source link

Handling of spaces with metadata #2

Closed a-fent closed 2 years ago

a-fent commented 3 years ago

Spaces and quoting in metadata is not being correctly handled

+PANDOC_METADATA: author-x:Max

results in

--metadata=author-x:Max

+PANDOC_METADATA: author-x:Max Mustermann

results in --metadata=author-x:Max --metadata=Mustermann

Quoting the string just results in quotes being applied to the beginning/end of the two parts

Also check setting of metadata in -options: https://github.com/kawabata/ox-pandoc/issues/49

a-fent commented 2 years ago

Misreading of the documentation, functions correctly when the instructions:

If you want to specify the option value which include space character, the entire option-value pair must be quoted (see example below)

are followed.