mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Ensure that markup is a tuple.
`self.markup` is a list when using the `-m|--markup` cli option, but testing the extension with `endswith` works only with tuples.
This commit is contained in:
parent
c6de4430a0
commit
3f91165f09
2 changed files with 23 additions and 5 deletions
|
|
@ -96,7 +96,7 @@ class Generator(object):
|
|||
extensions are allowed)
|
||||
"""
|
||||
if extensions is None:
|
||||
extensions = self.markup
|
||||
extensions = tuple(self.markup)
|
||||
basename = os.path.basename(path)
|
||||
if extensions is False or basename.endswith(extensions):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue