Fixed the PDF generation

Signed-off-by: Guillaume B <guitreize@gmail.com>
This commit is contained in:
Guillaume B 2010-12-22 04:46:11 +08:00 committed by Alexis Metaireau
commit 31cee95b6f
3 changed files with 16 additions and 7 deletions

2
pelican/__init__.py Normal file → Executable file
View file

@ -73,7 +73,7 @@ def run_pelican(settings, path, theme, output_path, markup, delete):
params = init_params(settings, path, theme, output_path, markup, delete)
generators = [ArticlesGenerator, PagesGenerator, StaticGenerator]
if params[0]['PDF_GENERATOR']: # param[0] is settings
processors.append(PdfGenerator)
generators.append(PdfGenerator)
run_generators(generators, *params)