aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-10-10 10:00:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-10 10:00:45 -0700
commita3cd74c29be02dde0d65e0dcf79bccc8d41952ed (patch)
tree65f24b37937234835d4177fd9d77e22ca262e8da /test/command
parent68b09a6d81b24b928b1629ecb3061a51a5ce2352 (diff)
downloadpandoc-a3cd74c29be02dde0d65e0dcf79bccc8d41952ed.tar.gz
`--metadata-file`: when multiple files specified, second takes precedence...
on conflicting fields. This changes earlier behavior (but not in a release), where first took precedence. Note that this may seem inconsistent with the behavior of multiple YAML blocks within a document, where the first takes precedence. Still, it is convenient to be able to override defaults with options later on the command line.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5700-metadata-file-1.yml2
-rw-r--r--test/command/5700-metadata-file-2.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/command/5700-metadata-file-1.yml b/test/command/5700-metadata-file-1.yml
index df64e99c5..8289c392b 100644
--- a/test/command/5700-metadata-file-1.yml
+++ b/test/command/5700-metadata-file-1.yml
@@ -1 +1 @@
-title: Multiple metadata files test
+title: This title should be overridden by 5700-metadta-file-2.yml
diff --git a/test/command/5700-metadata-file-2.yml b/test/command/5700-metadata-file-2.yml
index e865ed55d..1d5510e07 100644
--- a/test/command/5700-metadata-file-2.yml
+++ b/test/command/5700-metadata-file-2.yml
@@ -1,2 +1,2 @@
-title: This title should be overridden by 5700-metadta-file-2.yml
+title: Multiple metadata files test
desc: Both of these files should be loaded.