Skip to content

Allow list arguments in default files to accumulate #5881

Closed
@jgm

Description

@jgm

For example, if defaults1.yaml is

include-in-header: A.txt

and defaults2.yaml is

include-in-header:
- B.txt
- C.txt

and the command line is

pandoc --include-in-header D.txt --defaults defaults1.yaml --defaults defaults2.yaml

then we should get four files included, in the order: D.txt, A.txt, B.txt, C.txt.

This affects many of the arguments in defaults files. Note that some of these are currently accumulated in reverse in option processing (when multiple options are allowed), and we may want to regularize this a bit.

We also need some tests for this sort of thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions