From e8a87e5d3cb82081127a8a07da574059668688de Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 10 Oct 2016 12:23:26 +0200 Subject: [PATCH] As not allowing duplicates in processed items is counter intuitive, let's allow it. Also it may be allowed in the future (to process multiple values). Also @avaris think it's bad to test something twice (see https://github.com/getpelican/pelican/pull/2017), but for me confusion lies in the "Why is list processing forbidden?", so, in a way, our ideas converges in "let's not disallow processed items to be lists". This reverts commit 9e574e9d8c6e4d6377a6fcefe1579bb998c7223a. --- pelican/readers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pelican/readers.py b/pelican/readers.py index 503db679..a7712f0b 100644 --- a/pelican/readers.py +++ b/pelican/readers.py @@ -278,8 +278,7 @@ class MarkdownReader(BaseReader): self._md.reset() formatted = self._md.convert(formatted_values) output[name] = self.process_metadata(name, formatted) - elif (not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True) or - name in METADATA_PROCESSORS): + elif not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True): if len(value) > 1: logger.warning( 'Duplicate definition of `%s` '